summaryrefslogtreecommitdiff
path: root/tests/examplefiles/snobol/example.snobol.output
blob: a11dd21c05097665df0191926843497dd97c28d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
'-SOME RANDOM DIRECTIVE WOULD GO HERE\n' Comment

'*\n'         Comment

'* SNOBOL4 example file for lexer\n' Comment

'*\n'         Comment

' '           Text
'SOME.THING_OR_OTHER32' Name
' '           Text
'='           Operator
' '           Text
'1'           Literal.Number.Integer
' '           Text
'+'           Operator
' '           Text
'1.0'         Literal.Number.Float
' '           Text
'-'           Operator
' '           Text
'1E3'         Literal.Number.Float
' '           Text
'*'           Operator
' '           Text
'1E-3'        Literal.Number.Float
' '           Text
'**'          Operator
' '           Text
'2.718284590E0' Literal.Number.Float
'\n'          Text

'+ '          Punctuation
':'           Punctuation
'F'           Keyword
'('           Punctuation
'END'         Name.Label
')'           Punctuation
'S'           Keyword
'('           Punctuation
'IN_LOOP'     Name.Label
')'           Punctuation
' \n'         Text

' '           Text
'PATTERN'     Name
' '           Text
'='           Operator
' '           Text
'LEN'         Name.Builtin
'('           Punctuation
'3'           Literal.Number.Integer
')'           Punctuation
' '           Text
'('           Punctuation
'"GAR"'       Literal.String
' '           Text
'|'           Operator
' '           Text
'"BAR"'       Literal.String
')'           Punctuation
'\n'          Text

'IN_LOOP'     Name.Label
' '           Text
'THING'       Name
' '           Text
'='           Operator
' '           Text
'INPUT'       Name.Builtin
' '           Text
':'           Punctuation
'F'           Keyword
'('           Punctuation
'END'         Name.Label
')'           Punctuation
'\n'          Text

' '           Text
'THING'       Name
' '           Text
'LEN'         Name.Builtin
'('           Punctuation
'3'           Literal.Number.Integer
')'           Punctuation
' '           Text
'('           Punctuation
'"GAR"'       Literal.String
' '           Text
'|'           Operator
' '           Text
'"BAR"'       Literal.String
')'           Punctuation
' '           Text
':'           Punctuation
'S'           Keyword
'('           Punctuation
'OK'          Name.Label
')'           Punctuation
'\n'          Text

' '           Text
'OUTPUT'      Name.Builtin
' '           Text
'='           Operator
' '           Text
'THING'       Name
' '           Text
'" : Failure!"' Literal.String
' '           Text
':'           Punctuation
'('           Punctuation
'IN_LOOP'     Name.Label
')'           Punctuation
'\n'          Text

'OK'          Name.Label
' '           Text
'OUTPUT'      Name.Builtin
' '           Text
'='           Operator
' '           Text
'THING'       Name
' '           Text
'\' : "Success"!\'' Literal.String
' '           Text
':'           Punctuation
'('           Punctuation
'IN_LOOP'     Name.Label
')'           Punctuation
'\n'          Text

'END\n'       Name.Label

'FOOBAR\n'    Literal.String.Heredoc

'FOOGAR\n'    Literal.String.Heredoc

'THiNIg\n'    Literal.String.Heredoc