-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddout.txt
More file actions
94 lines (94 loc) · 13.2 KB
/
addout.txt
File metadata and controls
94 lines (94 loc) · 13.2 KB
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
lexeme curnode lineno token valifnum parent symbol isleaf symbol name
_main 0 MAIN ---- <mainFunction> YES ----
---- -1 ---- ---- $ NO <mainFunction>
[ 0 SQO ---- <mainFunction> YES ----
] 1 SQC ---- <mainFunction> YES ----
INT 1 INT ---- <type> YES ----
---- -1 ---- ---- <declarationStmt> NO <type>
---- -1 ---- ---- <stmt> NO <declarationStmt>
a 1 ID ---- <var_list> YES ----
---- -1 ---- ---- <declarationStmt> NO <var_list>
eps -1 eps ---- <more_ids> YES ----
---- -1 ---- ---- <var_list> NO <more_ids>
; 1 SEMICOLON ---- <declarationStmt> YES ----
---- -1 ---- ---- <stmtOrFunctionDef> NO <stmt>
---- -1 ---- ---- <stmtsAndFunctionDefs> NO <stmtOrFunctionDef>
---- -1 ---- ---- <mainFunction> NO <stmtsAndFunctionDefs>
a 2 ID ---- <leftHandSide_singleVar> YES ----
---- -1 ---- ---- <assignmentStmt_type1> NO <leftHandSide_singleVar>
---- -1 ---- ---- <stmt> NO <assignmentStmt_type1>
= 2 ASSIGNOP ---- <assignmentStmt_type1> YES ----
2 2 NUM 2 <var> YES ----
---- -1 ---- ---- <factor> NO <var>
---- -1 ---- ---- <arithmeticTerm> NO <factor>
---- -1 ---- ---- <arithmeticExpression> NO <arithmeticTerm>
eps -1 eps ---- <ArithTermFactored> YES ----
---- -1 ---- ---- <arithmeticTerm> NO <ArithTermFactored>
---- -1 ---- ---- <rightHandSide_type1> NO <arithmeticExpression>
+ 2 PLUS ---- <operator_lowPrecedence> YES ----
---- -1 ---- ---- <ArithExpFactored> NO <operator_lowPrecedence>
---- -1 ---- ---- <arithmeticExpression> NO <ArithExpFactored>
( 2 OP ---- <factor> YES ----
---- -1 ---- ---- <arithmeticTerm> NO <factor>
10 2 NUM 10 <var> YES ----
---- -1 ---- ---- <factor> NO <var>
---- -1 ---- ---- <arithmeticTerm> NO <factor>
---- -1 ---- ---- <arithmeticExpression> NO <arithmeticTerm>
eps -1 eps ---- <ArithTermFactored> YES ----
---- -1 ---- ---- <arithmeticTerm> NO <ArithTermFactored>
---- -1 ---- ---- <factor> NO <arithmeticExpression>
+ 2 PLUS ---- <operator_lowPrecedence> YES ----
---- -1 ---- ---- <ArithExpFactored> NO <operator_lowPrecedence>
---- -1 ---- ---- <arithmeticExpression> NO <ArithExpFactored>
2 2 NUM 2 <var> YES ----
---- -1 ---- ---- <factor> NO <var>
---- -1 ---- ---- <arithmeticTerm> NO <factor>
---- -1 ---- ---- <arithmeticExpression> NO <arithmeticTerm>
eps -1 eps ---- <ArithTermFactored> YES ----
---- -1 ---- ---- <arithmeticTerm> NO <ArithTermFactored>
---- -1 ---- ---- <ArithExpFactored> NO <arithmeticExpression>
eps -1 eps ---- <ArithExpFactored> YES ----
---- -1 ---- ---- <arithmeticExpression> NO <ArithExpFactored>
) 2 CL ---- <factor> YES ----
---- -1 ---- ---- <arithmeticExpression> NO <arithmeticTerm>
eps -1 eps ---- <ArithTermFactored> YES ----
---- -1 ---- ---- <arithmeticTerm> NO <ArithTermFactored>
---- -1 ---- ---- <ArithExpFactored> NO <arithmeticExpression>
+ 2 PLUS ---- <operator_lowPrecedence> YES ----
---- -1 ---- ---- <ArithExpFactored> NO <operator_lowPrecedence>
---- -1 ---- ---- <arithmeticExpression> NO <ArithExpFactored>
( 2 OP ---- <factor> YES ----
---- -1 ---- ---- <arithmeticTerm> NO <factor>
2 2 NUM 2 <var> YES ----
---- -1 ---- ---- <factor> NO <var>
---- -1 ---- ---- <arithmeticTerm> NO <factor>
---- -1 ---- ---- <arithmeticExpression> NO <arithmeticTerm>
* 2 MUL ---- <operator_highPrecedence> YES ----
---- -1 ---- ---- <ArithTermFactored> NO <operator_highPrecedence>
---- -1 ---- ---- <arithmeticTerm> NO <ArithTermFactored>
10 2 NUM 10 <var> YES ----
---- -1 ---- ---- <factor> NO <var>
---- -1 ---- ---- <arithmeticTerm> NO <factor>
---- -1 ---- ---- <ArithTermFactored> NO <arithmeticTerm>
eps -1 eps ---- <ArithTermFactored> YES ----
---- -1 ---- ---- <arithmeticTerm> NO <ArithTermFactored>
---- -1 ---- ---- <factor> NO <arithmeticExpression>
eps -1 eps ---- <ArithExpFactored> YES ----
---- -1 ---- ---- <arithmeticExpression> NO <ArithExpFactored>
) 2 CL ---- <factor> YES ----
---- -1 ---- ---- <arithmeticExpression> NO <arithmeticTerm>
eps -1 eps ---- <ArithTermFactored> YES ----
---- -1 ---- ---- <arithmeticTerm> NO <ArithTermFactored>
---- -1 ---- ---- <ArithExpFactored> NO <arithmeticExpression>
eps -1 eps ---- <ArithExpFactored> YES ----
---- -1 ---- ---- <arithmeticExpression> NO <ArithExpFactored>
---- -1 ---- ---- <assignmentStmt_type1> NO <rightHandSide_type1>
; 2 SEMICOLON ---- <assignmentStmt_type1> YES ----
---- -1 ---- ---- <stmtOrFunctionDef> NO <stmt>
---- -1 ---- ---- <stmtsAndFunctionDefs> NO <stmtOrFunctionDef>
---- -1 ---- ---- <stmtExt> NO <stmtsAndFunctionDefs>
eps -1 eps ---- <stmtExt> YES ----
---- -1 ---- ---- <stmtsAndFunctionDefs> NO <stmtExt>
---- -1 ---- ---- <stmtsAndFunctionDefs> NO <stmtExt>
END 3 END ---- <mainFunction> YES ----
---- -1 ---- ---- ---- NO $