-
Notifications
You must be signed in to change notification settings - Fork 0
/
FirstSet_v2.txt
55 lines (55 loc) · 1.48 KB
/
FirstSet_v2.txt
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
moduleDeclarations e DECLARE
moduleDeclaration DECLARE
otherModules e DEF
driverModule DRIVERDEF
module DEF
ret RETURNS e
input_plist ID
input_plist2 COMMA e
output_plist ID
output_plist2 COMMA e
dataType INTEGER REAL BOOLEAN ARRAY
type INTEGER REAL BOOLEAN
moduleDef START
statements e GET_VALUE PRINT DECLARE FOR WHILE ID USE SQBO SWITCH
ioStmt GET_VALUE PRINT
var ID NUM RNUM TRUE FALSE
whichId SQBO e
assignmentStmt ID
lvalueIDStmt ASSIGNOP
lvalueARRStmt SQBO
index1 NUM ID
moduleReuseStmt USE SQBO
optional SQBO e
idList ID
idList2 COMMA e
expression MINUS BO ID NUM RNUM TRUE FALSE
booleanOrNonBooleanArithmeticExpr BO ID NUM RNUM FALSE TRUE
arithmeticOrBooleanExpr BO ID NUM RNUM TRUE FALSE
arithmeticOrBooleanExpr2 e AND OR PLUS MINUS LT LE GT GE EQ NE MUL DIV
expressionWithLogOp e AND OR
anyTerm2 BO ID NUM RNUM FALSE TRUE
expressionWithRelOp e LT LE GT GE EQ NE
negOrPosArithmeticExpr MINUS BO ID NUM RNUM FALSE TRUE
arithmeticExpr2 e PLUS MINUS
term2 e MUL DIV
op1 PLUS MINUS
op2 MUL DIV
logicalOp AND OR
relationalOp LT LE GT GE EQ NE
declareStmt DECLARE
conditionalStmt SWITCH
caseStmts CASE
caseStmt CASE e
value NUM TRUE FALSE
default1 DEFAULT e
iterativeStmt FOR WHILE
range NUM
statement GET_VALUE PRINT DECLARE FOR WHILE ID USE SQBO SWITCH
simpleStmt ID USE SQBO
whichStmt ASSIGNOP SQBO
factor ID NUM RNUM FALSE TRUE
program e DECLARE DRIVERDEF DEF
term ID NUM RNUM FALSE TRUE
arithmeticExpr ID NUM RNUM TRUE FALSE
anyTerm ID NUM RNUM TRUE FALSE