summaryrefslogtreecommitdiff
path: root/tests/lexers/ucode/example.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lexers/ucode/example.txt')
-rw-r--r--tests/lexers/ucode/example.txt549
1 files changed, 549 insertions, 0 deletions
diff --git a/tests/lexers/ucode/example.txt b/tests/lexers/ucode/example.txt
new file mode 100644
index 00000000..0267e9a8
--- /dev/null
+++ b/tests/lexers/ucode/example.txt
@@ -0,0 +1,549 @@
+---input---
+version U12.1.00
+uid version.u1-1494453463-0
+impl local
+global 1
+ 0,000005,version,0
+
+
+proc version
+ local 0,000000,tab
+ local 1,000000,find
+ local 2,000000,many
+ con 0,010000,8,126,145,162,163,151,157,156,040
+ con 1,002000,1,8
+ con 2,020000,11,060,061,062,063,064,065,066,067,070,071,056
+ con 3,002000,1,1
+ declend
+ filen version.icn
+ line 23
+ colm 11
+ synt any
+ mark L1
+ line 25
+ colm 4
+ synt any
+ keywd version
+ line 25
+ colm 13
+ synt any
+ bscan
+ mark L2
+ mark L3
+ var 0
+ pnull
+ var 1
+ str 0
+ line 26
+ colm 15
+ synt any
+ invoke 1
+ int 1
+ line 26
+ colm 28
+ synt any
+ plus
+ line 26
+ colm 10
+ synt any
+ invoke 1
+ line 26
+ colm 33
+ synt any
+ esusp
+ goto L4
+lab L3
+ line 26
+ colm 35
+ synt any
+ pfail
+lab L4
+ unmark
+lab L2
+ var 0
+ var 2
+ cset 2
+ line 27
+ colm 15
+ synt any
+ invoke 1
+ line 27
+ colm 10
+ synt any
+ invoke 1
+ line 27
+ colm 32
+ synt any
+ bscan
+ mark L5
+ var 0
+ pnull
+ int 3
+ line 27
+ colm 45
+ synt any
+ neg
+ line 27
+ colm 44
+ synt any
+ invoke 1
+ line 27
+ colm 34
+ synt any
+ pret
+lab L5
+ synt any
+ pfail
+ line 27
+ colm 32
+ synt any
+ escan
+ line 25
+ colm 13
+ synt any
+ escan
+ unmark
+lab L1
+ pnull
+ line 30
+ colm 1
+ synt any
+ pfail
+ end
+
+---tokens---
+'version' Name.Function
+' ' Text
+'U12' Text
+'.1' Literal.Number.Float
+'.00' Literal.Number.Float
+'\n' Text
+
+'uid' Name.Function
+' ' Text
+'version' Name.Function
+'.' Punctuation
+'u1-1494453463-0' Text
+'\n' Text
+
+'impl' Name.Function
+' ' Text
+'local' Name.Function
+'\n' Text
+
+'global' Name.Function
+' ' Text
+'1\n ' Literal.Number.Integer
+'0' Literal.Number.Integer
+',' Punctuation
+'000005' Literal.Number.Integer
+',' Punctuation
+'version' Name.Function
+',' Punctuation
+'0\n\n\n' Literal.Number.Integer
+
+'proc' Keyword.Declaration
+' ' Text
+'version' Name.Function
+'\n ' Text
+'local' Name.Function
+' ' Text
+'0' Literal.Number.Integer
+',' Punctuation
+'000000' Literal.Number.Integer
+',' Punctuation
+'tab' Text
+'\n ' Text
+'local' Name.Function
+' ' Text
+'1' Literal.Number.Integer
+',' Punctuation
+'000000' Literal.Number.Integer
+',' Punctuation
+'find' Text
+'\n ' Text
+'local' Name.Function
+' ' Text
+'2' Literal.Number.Integer
+',' Punctuation
+'000000' Literal.Number.Integer
+',' Punctuation
+'many' Text
+'\n ' Text
+'con' Name.Function
+' ' Text
+'0' Literal.Number.Integer
+',' Punctuation
+'010000' Literal.Number.Integer
+',' Punctuation
+'8' Literal.Number.Integer
+',' Punctuation
+'126' Literal.Number.Integer
+',' Punctuation
+'145' Literal.Number.Integer
+',' Punctuation
+'162' Literal.Number.Integer
+',' Punctuation
+'163' Literal.Number.Integer
+',' Punctuation
+'151' Literal.Number.Integer
+',' Punctuation
+'157' Literal.Number.Integer
+',' Punctuation
+'156' Literal.Number.Integer
+',' Punctuation
+'040\n ' Literal.Number.Integer
+'con' Name.Function
+' ' Text
+'1' Literal.Number.Integer
+',' Punctuation
+'002000' Literal.Number.Integer
+',' Punctuation
+'1' Literal.Number.Integer
+',' Punctuation
+'8\n ' Literal.Number.Integer
+'con' Name.Function
+' ' Text
+'2' Literal.Number.Integer
+',' Punctuation
+'020000' Literal.Number.Integer
+',' Punctuation
+'11' Literal.Number.Integer
+',' Punctuation
+'060' Literal.Number.Integer
+',' Punctuation
+'061' Literal.Number.Integer
+',' Punctuation
+'062' Literal.Number.Integer
+',' Punctuation
+'063' Literal.Number.Integer
+',' Punctuation
+'064' Literal.Number.Integer
+',' Punctuation
+'065' Literal.Number.Integer
+',' Punctuation
+'066' Literal.Number.Integer
+',' Punctuation
+'067' Literal.Number.Integer
+',' Punctuation
+'070' Literal.Number.Integer
+',' Punctuation
+'071' Literal.Number.Integer
+',' Punctuation
+'056\n ' Literal.Number.Integer
+'con' Name.Function
+' ' Text
+'3' Literal.Number.Integer
+',' Punctuation
+'002000' Literal.Number.Integer
+',' Punctuation
+'1' Literal.Number.Integer
+',' Punctuation
+'1\n ' Literal.Number.Integer
+'declend' Name.Function
+'\n ' Text
+'filen' Comment
+' ' Text
+'version' Name.Function
+'.' Punctuation
+'icn' Text
+'\n ' Text
+'line' Comment
+' ' Text
+'23\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'11\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'mark' Keyword.Declaration
+' ' Text
+'L1' Text
+'\n ' Text
+'line' Comment
+' ' Text
+'25\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'4\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'keywd' Keyword.Declaration
+' ' Text
+'version' Name.Function
+'\n ' Text
+'line' Comment
+' ' Text
+'25\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'13\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'bscan' Keyword.Declaration
+'\n ' Text
+'mark' Keyword.Declaration
+' ' Text
+'L2' Text
+'\n ' Text
+'mark' Keyword.Declaration
+' ' Text
+'L3' Text
+'\n ' Text
+'var' Keyword.Declaration
+' ' Text
+'0\n ' Literal.Number.Integer
+'pnull' Keyword.Declaration
+'\n ' Text
+'var' Keyword.Declaration
+' ' Text
+'1\n ' Literal.Number.Integer
+'str' Keyword.Declaration
+' ' Text
+'0\n ' Literal.Number.Integer
+'line' Comment
+' ' Text
+'26\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'15\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'invoke' Keyword.Declaration
+' ' Text
+'1\n ' Literal.Number.Integer
+'int' Keyword.Declaration
+' ' Text
+'1\n ' Literal.Number.Integer
+'line' Comment
+' ' Text
+'26\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'28\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'plus' Keyword.Declaration
+'\n ' Text
+'line' Comment
+' ' Text
+'26\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'10\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'invoke' Keyword.Declaration
+' ' Text
+'1\n ' Literal.Number.Integer
+'line' Comment
+' ' Text
+'26\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'33\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'esusp' Keyword.Declaration
+'\n ' Text
+'goto' Keyword.Declaration
+' ' Text
+'L4' Text
+'\n' Text
+
+'lab' Name.Function
+' ' Text
+'L3' Text
+'\n ' Text
+'line' Comment
+' ' Text
+'26\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'35\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'pfail' Keyword.Declaration
+'\n' Text
+
+'lab' Name.Function
+' ' Text
+'L4' Text
+'\n ' Text
+'unmark' Keyword.Declaration
+'\n' Text
+
+'lab' Name.Function
+' ' Text
+'L2' Text
+'\n ' Text
+'var' Keyword.Declaration
+' ' Text
+'0\n ' Literal.Number.Integer
+'var' Keyword.Declaration
+' ' Text
+'2\n ' Literal.Number.Integer
+'cset' Keyword.Declaration
+' ' Text
+'2\n ' Literal.Number.Integer
+'line' Comment
+' ' Text
+'27\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'15\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'invoke' Keyword.Declaration
+' ' Text
+'1\n ' Literal.Number.Integer
+'line' Comment
+' ' Text
+'27\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'10\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'invoke' Keyword.Declaration
+' ' Text
+'1\n ' Literal.Number.Integer
+'line' Comment
+' ' Text
+'27\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'32\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'bscan' Keyword.Declaration
+'\n ' Text
+'mark' Keyword.Declaration
+' ' Text
+'L5' Text
+'\n ' Text
+'var' Keyword.Declaration
+' ' Text
+'0\n ' Literal.Number.Integer
+'pnull' Keyword.Declaration
+'\n ' Text
+'int' Keyword.Declaration
+' ' Text
+'3\n ' Literal.Number.Integer
+'line' Comment
+' ' Text
+'27\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'45\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'neg' Keyword.Declaration
+'\n ' Text
+'line' Comment
+' ' Text
+'27\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'44\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'invoke' Keyword.Declaration
+' ' Text
+'1\n ' Literal.Number.Integer
+'line' Comment
+' ' Text
+'27\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'34\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'pret' Keyword.Declaration
+'\n' Text
+
+'lab' Name.Function
+' ' Text
+'L5' Text
+'\n ' Text
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'pfail' Keyword.Declaration
+'\n ' Text
+'line' Comment
+' ' Text
+'27\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'32\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'escan' Keyword.Declaration
+'\n ' Text
+'line' Comment
+' ' Text
+'25\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'13\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'escan' Keyword.Declaration
+'\n ' Text
+'unmark' Keyword.Declaration
+'\n' Text
+
+'lab' Name.Function
+' ' Text
+'L1' Text
+'\n ' Text
+'pnull' Keyword.Declaration
+'\n ' Text
+'line' Comment
+' ' Text
+'30\n ' Literal.Number.Integer
+'colm' Comment
+' ' Text
+'1\n ' Literal.Number.Integer
+'synt' Comment
+' ' Text
+'any' Name.Constant
+'\n ' Text
+'pfail' Keyword.Declaration
+'\n ' Text
+'end' Name.Function
+'\n' Text