-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresult.txt
50 lines (50 loc) · 1.53 KB
/
result.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
TYPE_SPECIFIER::= INT
VAR_DECLARATION::= TYPE_SPECIFIER ID PUNTUACTION
DECLARATION::= VAR_DECLARATION
DECLARATION_LIST::= DECLARATION
TYPE_SPECIFIER::= INT
VAR_DECLARATION::= TYPE_SPECIFIER ID PUNTUACTION
DECLARATION::= VAR_DECLARATION
DECLARATION_LIST::= DECLARATION_LIST DECLARATION
TYPE_SPECIFIER::= VOID
TYPE_SPECIFIER::= INT
PARAM::= TYPE_SPECIFIER ID
PARAM_LIST::= PARAM
TYPE_SPECIFIER::= INT
PARAM::= TYPE_SPECIFIER ID OPENBRACKETCOR CLOSEBRACKETCOR
PARAM_LIST::= PARAM_LIST COMA PARAM
PARAMS::= PARAM_LIST
LOCAL_DECLARATIONS::= EMPTY
STATEMENT_LIST::= EMPTY
VAR::= ID
EXP::= VAR
FACTOR::= EXP
TERM::= FACTOR
ADDITIVE_EXPRESSION::= TERM
RELOP::= EQ
EXP::= NUM
FACTOR::= EXP
TERM::= FACTOR
ADDITIVE_EXPRESSION::= TERM
SIMPLE_EXPRESION::= ADITIVE_EXPRESION RELOP ADITIVE_EXPRESION
EXPRESSION::= SIMPLE_EXPRESSION
VAR::= ID
EXP::= VAR
FACTOR::= EXP
TERM::= FACTOR
ADDITIVE_EXPRESSION::= TERM
SIMPLE_EXPRESION::= ADITIVE_EXPRESION
EXPRESSION::= SIMPLE_EXPRESSION
RETURN_STMT::= RETURN EXPRESSION PUNTUACTION
STATEMENT::= RETURN_STMT
SELECTION_STMT::= IF OPENBRACKET EXPRESSION CLOSEBRACKET STATEMENT
STATEMENT::= SELECTION_STMT
STATEMENT_LIST::= STATEMENT_LIST STATEMENT
EXPRESSION_STMT::= PUNTUACTION
STATEMENT::= EXPRESSION_STMT
STATEMENT_LIST::= STATEMENT_LIST STATEMENT
COMPOUND_STMT::= OPENBRACKETLL LOCAL_DECLARATIONS STATEMENT_LIST CLOSEBRACKETLL
FUN_DECLARATION::= TYPE_SPECIFIER ID OPENBRACKET PARAMS CLOSEBRACKET COMPOUND_STMT
DECLARATION::= FUN_DECLARATION
DECLARATION_LIST::= DECLARATION_LIST DECLARATION
PROGRAM::= DECLARATION_LIST