-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddoutpruned.txt
56 lines (56 loc) · 7.88 KB
/
addoutpruned.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
56
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 ----
c 1 ID ---- <leftHandSide_singleVar> YES ----
---- -1 ---- ---- <assignmentStmt_type1> NO <leftHandSide_singleVar>
---- -1 ---- ---- <stmt> NO <assignmentStmt_type1>
= 1 ASSIGNOP ---- <assignmentStmt_type1> YES ----
2 1 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>
+ 1 PLUS ---- <operator_lowPrecedence> YES ----
---- -1 ---- ---- <ArithExpFactored> NO <operator_lowPrecedence>
---- -1 ---- ---- <arithmeticExpression> NO <ArithExpFactored>
( 1 OP ---- <factor> YES ----
---- -1 ---- ---- <arithmeticTerm> NO <factor>
3 1 NUM 3 <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>
+ 1 PLUS ---- <operator_lowPrecedence> YES ----
---- -1 ---- ---- <ArithExpFactored> NO <operator_lowPrecedence>
---- -1 ---- ---- <arithmeticExpression> NO <ArithExpFactored>
5 1 NUM 5 <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>
) 1 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>
; 1 SEMICOLON ---- <assignmentStmt_type1> YES ----
---- -1 ---- ---- <stmtOrFunctionDef> NO <stmt>
---- -1 ---- ---- <stmtsAndFunctionDefs> NO <stmtOrFunctionDef>
---- -1 ---- ---- <mainFunction> NO <stmtsAndFunctionDefs>
eps -1 eps ---- <stmtExt> YES ----
---- -1 ---- ---- <stmtsAndFunctionDefs> NO <stmtExt>
END 2 END ---- <mainFunction> YES ----
---- -1 ---- ---- ---- NO $