mirror of
https://github.com/alecthomas/chroma.git
synced 2025-02-05 13:05:18 +02:00
62 lines
2.1 KiB
Plaintext
62 lines
2.1 KiB
Plaintext
[
|
|
{"type":"KeywordDeclaration","value":"var"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameOther","value":"x"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":":"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"KeywordType","value":"int"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":":="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"10"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"KeywordDeclaration","value":"fcn"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameOther","value":"testFunction"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameOther","value":"a"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameOther","value":"b"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameOther","value":"c"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Keyword","value":"result"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameOther","value":"a"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"+"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameOther","value":"b"},
|
|
{"type":"Punctuation","value":")"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameOther","value":"c"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"KeywordDeclaration","value":"end"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameOther","value":"testFunction"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"put"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameOther","value":"testFunction"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameOther","value":"x"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"2"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"*"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameOther","value":"x"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"3"},
|
|
{"type":"Punctuation","value":")"}
|
|
]
|