Debian Codegraph @

tests/snippets/cython/test_cppclass_extern_import.txt

raw
1 ---input---
2 # distutils: language = c++
3
4 cdef extern from "<vector>" namespace "std":
5 cdef cppclass vector[T]:
6 cppclass iterator:
7 T operator*()
8 iterator operator++()
9 bint operator==(iterator)
10 bint operator!=(iterator)
11 vector()
12 void push_back(T&)
13 T& operator[](int)
14 T& at(int)
15 iterator begin()
16 iterator end()
17
18 cdef vector[int].iterator iter
19
20 ---tokens---
21 '# distutils: language = c++' Comment
22 '\n' Text.Whitespace
23
24 '\n' Text.Whitespace
25
26 'cdef' Keyword
27 ' ' Text.Whitespace
28 'extern' Keyword.Reserved
29 ' ' Text
30 'from' Keyword
31 ' ' Text
32 '"' Literal.String
33 '<vector>' Literal.String
34 '"' Literal.String
35 ' ' Text
36 'namespace' Keyword
37 ' ' Text
38 '"' Literal.String
39 'std' Literal.String
40 '"' Literal.String
41 ':' Punctuation
42 '\n' Text.Whitespace
43
44 ' ' Text
45 'cdef' Keyword
46 ' ' Text.Whitespace
47 'cppclass' Keyword
48 ' ' Text.Whitespace
49 'vector' Name.Class
50 '[' Punctuation
51 'T' Name
52 ']' Punctuation
53 ':' Punctuation
54 '\n' Text.Whitespace
55
56 ' ' Text
57 'cppclass' Keyword
58 ' ' Text.Whitespace
59 'iterator' Name.Class
60 ':' Punctuation
61 '\n' Text.Whitespace
62
63 ' ' Text
64 'T' Name
65 ' ' Text
66 'operator' Name
67 '*' Operator
68 '(' Punctuation
69 ')' Punctuation
70 '\n' Text.Whitespace
71
72 ' ' Text
73 'iterator' Name
74 ' ' Text
75 'operator' Name
76 '+' Operator
77 '+' Operator
78 '(' Punctuation
79 ')' Punctuation
80 '\n' Text.Whitespace
81
82 ' ' Text
83 'bint' Name.Builtin
84 ' ' Text
85 'operator' Name
86 '==' Operator
87 '(' Punctuation
88 'iterator' Name
89 ')' Punctuation
90 '\n' Text.Whitespace
91
92 ' ' Text
93 'bint' Name.Builtin
94 ' ' Text
95 'operator' Name
96 '!=' Operator
97 '(' Punctuation
98 'iterator' Name
99 ')' Punctuation
100 '\n' Text.Whitespace
101
102 ' ' Text
103 'vector' Name
104 '(' Punctuation
105 ')' Punctuation
106 '\n' Text.Whitespace
107
108 ' ' Text
109 'void' Name
110 ' ' Text
111 'push_back' Name
112 '(' Punctuation
113 'T' Name
114 '&' Operator
115 ')' Punctuation
116 '\n' Text.Whitespace
117
118 ' ' Text
119 'T' Name
120 '&' Operator
121 ' ' Text
122 'operator' Name
123 '[' Punctuation
124 ']' Punctuation
125 '(' Punctuation
126 'int' Name.Builtin
127 ')' Punctuation
128 '\n' Text.Whitespace
129
130 ' ' Text
131 'T' Name
132 '&' Operator
133 ' ' Text
134 'at' Name
135 '(' Punctuation
136 'int' Name.Builtin
137 ')' Punctuation
138 '\n' Text.Whitespace
139
140 ' ' Text
141 'iterator' Name
142 ' ' Text
143 'begin' Name
144 '(' Punctuation
145 ')' Punctuation
146 '\n' Text.Whitespace
147
148 ' ' Text
149 'iterator' Name
150 ' ' Text
151 'end' Name
152 '(' Punctuation
153 ')' Punctuation
154 '\n' Text.Whitespace
155
156 '\n' Text.Whitespace
157
158 'cdef' Keyword
159 ' ' Text.Whitespace
160 'vector' Keyword.Type
161 '[' Text
162 'int' Keyword.Type
163 ']' Text
164 '.' Text
165 'iterator' Keyword.Type
166 ' ' Text
167 'iter' Name.Variable
168 '\n' Text.Whitespace