-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathandout.txt
More file actions
51 lines (51 loc) · 7.17 KB
/
andout.txt
File metadata and controls
51 lines (51 loc) · 7.17 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
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 ----
IF 1 IF ---- <ifStmt> YES ----
---- -1 ---- ---- <stmt> NO <ifStmt>
( 1 OP ---- <ifStmt> YES ----
( 1 OP ---- <booleanExpression> YES ----
---- -1 ---- ---- <ifStmt> NO <booleanExpression>
i 1 ID ---- <constrainedVars> YES ----
---- -1 ---- ---- <booleanExpression> NO <constrainedVars>
---- -1 ---- ---- <booleanExpression> NO <booleanExpression>
< 1 LT ---- <relationalOp> YES ----
---- -1 ---- ---- <booleanExpression> NO <relationalOp>
10 1 NUM 10 <constrainedVars> YES ----
---- -1 ---- ---- <booleanExpression> NO <constrainedVars>
) 1 CL ---- <booleanExpression> YES ----
AND 1 AND ---- <logicalOp> YES ----
---- -1 ---- ---- <booleanExpression> NO <logicalOp>
( 1 OP ---- <booleanExpression> YES ----
i 1 ID ---- <constrainedVars> YES ----
---- -1 ---- ---- <booleanExpression> NO <constrainedVars>
---- -1 ---- ---- <booleanExpression> NO <booleanExpression>
> 1 GT ---- <relationalOp> YES ----
---- -1 ---- ---- <booleanExpression> NO <relationalOp>
11 1 NUM 11 <constrainedVars> YES ----
---- -1 ---- ---- <booleanExpression> NO <constrainedVars>
) 1 CL ---- <booleanExpression> YES ----
) 2 CL ---- <ifStmt> YES ----
INT 2 INT ---- <type> YES ----
---- -1 ---- ---- <declarationStmt> NO <type>
---- -1 ---- ---- <stmt> NO <declarationStmt>
a 2 ID ---- <var_list> YES ----
---- -1 ---- ---- <declarationStmt> NO <var_list>
eps -1 eps ---- <more_ids> YES ----
---- -1 ---- ---- <var_list> NO <more_ids>
; 2 SEMICOLON ---- <declarationStmt> YES ----
---- -1 ---- ---- <ifStmt> NO <stmt>
eps -1 eps ---- <otherStmts> YES ----
---- -1 ---- ---- <ifStmt> NO <otherStmts>
ENDIF 3 ENDIF ---- <ifStmtFactored> YES ----
---- -1 ---- ---- <ifStmt> NO <ifStmtFactored>
; 3 SEMICOLON ---- <ifStmtFactored> YES ----
---- -1 ---- ---- <stmtOrFunctionDef> NO <stmt>
---- -1 ---- ---- <stmtsAndFunctionDefs> NO <stmtOrFunctionDef>
---- -1 ---- ---- <mainFunction> NO <stmtsAndFunctionDefs>
eps -1 eps ---- <stmtExt> YES ----
---- -1 ---- ---- <stmtsAndFunctionDefs> NO <stmtExt>
END 4 END ---- <mainFunction> YES ----
---- -1 ---- ---- ---- NO $