Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata
61
lexers/testdata/turing.expected
vendored
Normal file
61
lexers/testdata/turing.expected
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
[
|
||||
{"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":")"}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue