blob: dca3760c32ef0f293a166d791e68af7153a9bfbc (
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
|
---input---
def me := object: {
def name := "Kevin";
def sayHello(peerName) {
system.println(peerName + " says hello!");
};
};
---tokens---
'def' Keyword
' ' Text
'me' Name.Variable
' ' Text
':=' Operator
' ' Text
'object:' Name.Builtin
' ' Text
'{' Punctuation
'\n ' Text
'def' Keyword
' ' Text
'name' Name.Variable
' ' Text
':=' Operator
' ' Text
'"Kevin"' Literal.String
';' Punctuation
'\n ' Text
'def' Keyword
' ' Text
'sayHello' Name.Variable
'(' Punctuation
'peerName' Name.Variable
')' Punctuation
' ' Text
'{' Punctuation
'\n ' Text
'system' Name.Variable
'.' Operator
'println' Name.Variable
'(' Punctuation
'peerName' Name.Variable
' ' Text
'+' Operator
' ' Text
'" says hello!"' Literal.String
')' Punctuation
';' Punctuation
'\n ' Text
'}' Punctuation
';' Punctuation
'\n' Text
'}' Punctuation
';' Punctuation
'\n' Text
|