mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-13 23:12:24 +00:00
59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
|
---input---
|
||
|
@[Link("some")]
|
||
|
lib LibSome
|
||
|
@[CallConvention("X86_StdCall")]
|
||
|
fun foo="some.foo"(thing : Void*) : LibC::Int
|
||
|
end
|
||
|
|
||
|
---tokens---
|
||
|
'@[' Operator
|
||
|
'Link' Name.Decorator
|
||
|
'(' Punctuation
|
||
|
'"' Literal.String.Double
|
||
|
'some' Literal.String.Double
|
||
|
'"' Literal.String.Double
|
||
|
')' Punctuation
|
||
|
']' Operator
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'lib' Keyword
|
||
|
' ' Text.Whitespace
|
||
|
'LibSome' Name.Namespace
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'@[' Operator
|
||
|
'CallConvention' Name.Decorator
|
||
|
'(' Punctuation
|
||
|
'"' Literal.String.Double
|
||
|
'X86_StdCall' Literal.String.Double
|
||
|
'"' Literal.String.Double
|
||
|
')' Punctuation
|
||
|
']' Operator
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'fun' Keyword
|
||
|
' ' Text.Whitespace
|
||
|
'foo' Name.Function
|
||
|
'=' Operator
|
||
|
'"' Literal.String.Double
|
||
|
'some.foo' Literal.String.Double
|
||
|
'"' Literal.String.Double
|
||
|
'(' Punctuation
|
||
|
'thing' Name
|
||
|
' ' Text.Whitespace
|
||
|
':' Punctuation
|
||
|
' ' Text.Whitespace
|
||
|
'Void' Name
|
||
|
'*' Operator
|
||
|
')' Punctuation
|
||
|
' ' Text.Whitespace
|
||
|
':' Punctuation
|
||
|
' ' Text.Whitespace
|
||
|
'LibC' Name
|
||
|
'::' Operator
|
||
|
'Int' Name
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'end' Keyword
|
||
|
'\n' Text.Whitespace
|