-
Notifications
You must be signed in to change notification settings - Fork 0
/
firsts.txt
45 lines (45 loc) · 975 Bytes
/
firsts.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
Program $ int void
Declaration_list ε int void
Declaration int void
Declaration_initial int void
Declaration_prime ( ; [
Var_Declaration_prime ; [
Fun_Declaration_prime (
Type_specifier int void
Params int void
Param_list , ε
Param int void
Param_prime [ ε
Compound_stmt {
Statement_list ε { break ; if repeat return ID ( NUM
Statement { break ; if repeat return ID ( NUM
Expression_stmt break ; ID ( NUM
Selection_stmt if
Else_stmt endif else
Iteration_stmt repeat
Return_stmt return
Return_stmt_prime ; ID ( NUM
Expression ID ( NUM
B = [ ( * + - ε
H = * + - ε
Simple_expression_zegond ( NUM
Simple_expression_prime ( * + - = ε
C ε < =
Relop < =
Additive_expression ( ID NUM
Additive_expression_prime ( * + - ε
Additive_expression_zegond ( NUM
D ε + -
Addop + -
Term ( ID NUM
Term_prime ( * ε
Term_zegond ( NUM
G * ε
Factor ( ID NUM
Var_call_prime ( [ ε
Var_prime [ ε
Factor_prime ( ε
Factor_zegond ( NUM
Args ε ID ( NUM
Arg_list ID ( NUM
Arg_list_prime , ε