forked from ohmygirl/mylex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.out
56 lines (56 loc) · 3.88 KB
/
example.out
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
+-----+--------------------+--------------------+--------------------+
| No.| Symbol| Symbol Type| Notes|
+-----+--------------------+--------------------+--------------------+
| 1 | const | constsym | |
| 2 | a | ident | |
| 3 | = | eql | |
| 4 | 10 | number | |
| 5 | ; | semicolon | |
| 6 | var | varsym | |
| 7 | b | ident | |
| 8 | , | comma | |
| 9 | c | ident | |
| 10 | ; | semicolon | |
| 11 | procedure | proceduresym | |
| 12 | p | ident | |
| 13 | begin | beginsym | |
| 14 | c | ident | |
| 15 | := | becomes | |
| 16 | b | ident | |
| 17 | + | plus | |
| 18 | a | ident | |
| 19 | ; | semicolon | |
| 20 | end | endsym | |
| 21 | ; | semicolon | |
| 22 | begin | beginsym | |
| 23 | read | readsym | |
| 24 | ( | lparen | |
| 25 | b | ident | |
| 26 | ) | rparen | |
| 27 | ; | semicolon | |
| 28 | while | whilesym | |
| 29 | b | ident | |
| 30 | # | neq | |
| 31 | 0 | number | |
| 32 | do | dosym | |
| 33 | begin | beginsym | |
| 34 | call | callsym | |
| 35 | p | ident | |
| 36 | ; | semicolon | |
| 37 | write | writesym | |
| 38 | ( | lparen | |
| 39 | 2 | number | |
| 40 | * | times | |
| 41 | c | ident | |
| 42 | ) | rparen | |
| 43 | ; | semicolon | |
| 44 | read | readsym | |
| 45 | ( | lparen | |
| 46 | b | ident | |
| 47 | ) | rparen | |
| 48 | ; | semicolon | |
| 49 | end | endsym | |
| 50 | end | endsym | |
| 51 | . | period | |
| 52 | EOF | eof | |
+-----+--------------------+--------------------+--------------------+