summaryrefslogtreecommitdiff
path: root/tests/lexers/openedge/example.txt
blob: 4c2a3b7b6a82cba17933dcdb0edd5694c709aa9a (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
---input---
USING Progress.Lang.*.

CLASS Test INHERITS Progress.Sucks:

  DEFINE PRIVATE VARIABLE cTest AS CHAR NO-UNDO.

  CONSTRUCTOR PUBLIC Test():
    SUPER().
    MESSAGE "Why are you punishing yourself by coding in this language?".
  END CONSTRUCTOR.

  METHOD PUBLIC LOGICAL Blowup(INPUT iTime AS INT):
  END.

END CLASS.

---tokens---
'USING'       Name.Builtin
' '           Text
'Progress'    Name.Builtin
'.'           Punctuation
'L'           Name.Variable
'a'           Name.Variable
'n'           Name.Variable
'g'           Name.Variable
'.'           Punctuation
'*'           Operator
'.'           Punctuation
'\n\n'        Text

'CLASS'       Name.Builtin
' '           Text
'T'           Name.Variable
'e'           Name.Variable
's'           Name.Variable
't'           Name.Variable
' '           Text
'INHERITS'    Name.Builtin
' '           Text
'Progress'    Name.Builtin
'.'           Punctuation
'S'           Name.Variable
'u'           Name.Variable
'c'           Name.Variable
'k'           Name.Variable
's'           Name.Variable
':'           Punctuation
'\n\n  '      Text
'DEFINE'      Keyword.Declaration
' '           Text
'PRIVATE'     Name.Builtin
' '           Text
'VARIABLE'    Name.Builtin
' '           Text
'c'           Name.Variable
'T'           Name.Variable
'e'           Name.Variable
's'           Name.Variable
't'           Name.Variable
' '           Text
'AS'          Name.Builtin
' '           Text
'CHAR'        Keyword.Type
' '           Text
'NO-UNDO'     Name.Builtin
'.'           Punctuation
'\n\n  '      Text
'CONSTRUCTOR' Name.Builtin
' '           Text
'PUBLIC'      Name.Builtin
' '           Text
'T'           Name.Variable
'e'           Name.Variable
's'           Name.Variable
't'           Name.Variable
'('           Punctuation
')'           Punctuation
':'           Punctuation
'\n    '      Text
'SUPER'       Name.Builtin
'('           Punctuation
')'           Punctuation
'.'           Punctuation
'\n    '      Text
'MESSAGE '    Name.Builtin
'"Why are you punishing yourself by coding in this language?"' Literal.String.Double
'.'           Punctuation
'\n  '        Text
'END'         Name.Builtin
' '           Text
'CONSTRUCTOR' Name.Builtin
'.'           Punctuation
'\n\n  '      Text
'METHOD'      Name.Builtin
' '           Text
'PUBLIC'      Name.Builtin
' '           Text
'LOGICAL'     Keyword.Type
' '           Text
'B'           Name.Variable
'l'           Name.Variable
'o'           Name.Variable
'w'           Name.Variable
'u'           Name.Variable
'p'           Name.Variable
'('           Punctuation
'INPUT'       Name.Builtin
' '           Text
'i'           Name.Variable
'T'           Name.Variable
'i'           Name.Variable
'm'           Name.Variable
'e'           Name.Variable
' '           Text
'AS'          Name.Builtin
' '           Text
'INT'         Keyword.Type
')'           Punctuation
':'           Punctuation
'\n  '        Text
'END'         Name.Builtin
'.'           Punctuation
'\n\n'        Text

'END'         Name.Builtin
' '           Text
'CLASS'       Name.Builtin
'.'           Punctuation
'\n'          Text