| 1 |
---input--- |
| 2 |
cdef void function1(bint flag): |
| 3 |
... |
| 4 |
|
| 5 |
cpdef unsigned char function2(float arg1): |
| 6 |
cdef: |
| 7 |
size_t arg2, arg3 |
| 8 |
char* arg4 |
| 9 |
|
| 10 |
def function3(Py_ssize_t index) -> float: |
| 11 |
raise NotImplemented |
| 12 |
|
| 13 |
---tokens--- |
| 14 |
'cdef' Keyword |
| 15 |
' ' Text.Whitespace |
| 16 |
'void' Keyword.Type |
| 17 |
' ' Text |
| 18 |
'function1' Name.Function |
| 19 |
'(' Punctuation |
| 20 |
'bint' Name.Builtin |
| 21 |
' ' Text |
| 22 |
'flag' Name |
| 23 |
')' Punctuation |
| 24 |
':' Punctuation |
| 25 |
'\n' Text.Whitespace |
| 26 |
|
| 27 |
' ' Text |
| 28 |
'.' Operator |
| 29 |
'.' Operator |
| 30 |
'.' Operator |
| 31 |
'\n' Text.Whitespace |
| 32 |
|
| 33 |
'\n' Text.Whitespace |
| 34 |
|
| 35 |
'cpdef' Keyword |
| 36 |
' ' Text.Whitespace |
| 37 |
'unsigned' Keyword.Type |
| 38 |
' ' Text |
| 39 |
'char' Keyword.Type |
| 40 |
' ' Text |
| 41 |
'function2' Name.Function |
| 42 |
'(' Punctuation |
| 43 |
'float' Name.Builtin |
| 44 |
' ' Text |
| 45 |
'arg1' Name |
| 46 |
')' Punctuation |
| 47 |
':' Punctuation |
| 48 |
'\n' Text.Whitespace |
| 49 |
|
| 50 |
' ' Text |
| 51 |
'cdef' Keyword |
| 52 |
':' Punctuation |
| 53 |
'\n' Text.Whitespace |
| 54 |
|
| 55 |
' ' Text |
| 56 |
'size_t' Name.Builtin |
| 57 |
' ' Text |
| 58 |
'arg2' Name |
| 59 |
',' Punctuation |
| 60 |
' ' Text |
| 61 |
'arg3' Name |
| 62 |
'\n' Text.Whitespace |
| 63 |
|
| 64 |
' ' Text |
| 65 |
'char' Name.Builtin |
| 66 |
'*' Operator |
| 67 |
' ' Text |
| 68 |
'arg4' Name |
| 69 |
'\n' Text.Whitespace |
| 70 |
|
| 71 |
'\n' Text.Whitespace |
| 72 |
|
| 73 |
'def' Keyword |
| 74 |
' ' Text.Whitespace |
| 75 |
'function3' Name.Function |
| 76 |
'(' Punctuation |
| 77 |
'Py_ssize_t' Name.Builtin |
| 78 |
' ' Text |
| 79 |
'index' Name |
| 80 |
')' Punctuation |
| 81 |
' ' Text |
| 82 |
'-' Operator |
| 83 |
'>' Operator |
| 84 |
' ' Text |
| 85 |
'float' Name.Builtin |
| 86 |
':' Punctuation |
| 87 |
'\n' Text.Whitespace |
| 88 |
|
| 89 |
' ' Text |
| 90 |
'raise' Keyword |
| 91 |
' ' Text |
| 92 |
'NotImplemented' Name.Builtin.Pseudo |
| 93 |
'\n' Text.Whitespace |