-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tag.hpp
82 lines (78 loc) · 2.26 KB
/
Tag.hpp
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
#pragma once
class Tag{
public:
static const int
PRG=0,
BGN=1,
END=2,
INT=3,
DEC=4,
IF=5,
ELSE=6,
DECL=7,
THEN=8,
READ=9,
WRT=10,
DO=11,
WHILE=12,
FOR=13,
MOD=14,
ATRIB=15,
LT=16,
LE=17,
EQ=18,
GT=19,
GE=20,
LL=21,
GG=22,
LLL=23,
GGG=24,
ID=25,
NUM=26,
ADD=27,
SUB=28,
MLT=29,
DIV=30,
PNT=31,
COM=32,
SMC=33,
SQUT=34,
CLM=35,
DQUT=36,
QST=37,
OR=38,
AND=39,
NE=40,
OPAR=41,
CPAR=42,
TRUE=43,
FALSE=44,
EoF=45,
DECLARE=46,
NOT=47,
TYPE=48,
DECLLST=49,
STMT=50,
STMTLST=51,
IFSTMT=52,
WHILESTMT=53,
READSTMT=54,
WRITESTMT=55,
CONDITION=56,
EXPRESSION=57,
SIMPLEEXPRESSION=58,
TERM=59,
FACTORA=60,
FACTOR=61,
BODY=62,
IDLST=63,
DOWHILESTMT=64,
ASSIGNSTMT=65,
RELOP=66,
ADDOP=67,
MULOP=68,
WRITEABLE=69,
SHIFTSTMT=70,
LIT=71,
STMTSUFFIX=72;
};