summaryrefslogtreecommitdiff
path: root/tests/lexers/dylan-console/example.txt
blob: e2616e4c5656206448c4e38e65622472d2e1411b (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
---input---
? 7 * 52;
=> 364
? define variable *your-variable* = $foo;
? begin
   let yours = "apple";
   let mine = yours;
   mine == yours;
 end;
=> #t

---tokens---
'?'           Generic.Prompt
' '           Text
'7'           Literal.Number.Integer
' '           Text
'*'           Operator
' '           Text
'52'          Literal.Number.Integer
';'           Punctuation
'\n'          Text

'=> 364\n'    Generic.Output

'?'           Generic.Prompt
' '           Text
'define'      Keyword
' '           Text
'variable'    Name.Builtin
' '           Text
'*your-variable*' Name.Variable.Global
' '           Text
'='           Operator
' '           Text
'$foo'        Name.Constant
';'           Punctuation
'\n'          Text

'?'           Generic.Prompt
' '           Text
'begin'       Keyword
'\n'          Text

' '           Generic.Prompt
'  '          Text
'let'         Keyword
' '           Text
'yours'       Name
' '           Text
'='           Operator
' '           Text
'"'           Literal.String
'apple'       Literal.String
'"'           Literal.String
';'           Punctuation
'\n'          Text

' '           Generic.Prompt
'  '          Text
'let'         Keyword
' '           Text
'mine'        Name
' '           Text
'='           Operator
' '           Text
'yours'       Name
';'           Punctuation
'\n'          Text

' '           Generic.Prompt
'  '          Text
'mine'        Name
' '           Text
'=='          Operator
' '           Text
'yours'       Name
';'           Punctuation
'\n'          Text

' '           Generic.Prompt
'end'         Keyword
';'           Punctuation
'\n'          Text

'=> #t\n'     Generic.Output