-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpredictldy.txt
More file actions
65 lines (65 loc) · 1.67 KB
/
predictldy.txt
File metadata and controls
65 lines (65 loc) · 1.67 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
program#{ -> compoundstmt
stmt#int -> decl
stmt#real -> decl
stmt#if -> ifstmt
stmt#while -> whilestmt
stmt#ID -> assgstmt
stmt#{ -> compoundstmt
compoundstmt#{ -> { stmts }
stmts#{ -> stmt stmts
stmts#if -> stmt stmts
stmts#while -> stmt stmts
stmts#ID -> stmt stmts
stmts#int -> stmt stmts
stmts#real -> stmt stmts
stmts#if -> stmt stmts
stmts#while -> stmt stmts
stmts#} -> $
ifstmt#if -> if ( boolexpr ) then stmt else stmt
whilestmt#while -> while ( boolexpr ) stmt
assgstmt#ID -> ID = arithexpr ;
decl#int -> type list ;
decl#real -> type list ;
type#NUM -> NUM;
list#ID -> ID list1
list1#, -> , list
list1#; -> $
boolexpr#ID -> arithexpr boolop arithexpr
boolexpr#( -> arithexpr boolop arithexpr
boolexpr#NUM -> arithexpr boolop arithexpr
boolop#< -> <
boolop#> -> >
boolop#<= -> <=
boolop#>= -> >=
boolop#== -> ==
arithexpr#; -> multexpr arithexprprime
arithexpr#( -> multexpr arithexprprime
arithexpr#ID -> multexpr arithexprprime
arithexpr#NUM -> multexpr arithexprprime
arithexprprime#+ -> + multexpr arithexprprime
arithexprprime#- -> - multexpr arithexprprime
arithexprprime#) -> $
arithexprprime#; -> $
arithexprprime#< -> $
arithexprprime#> -> $
arithexprprime#<= -> $
arithexprprime#== -> $
arithexprprime#>= -> $
multexpr#) -> simpleexpr multexprprime
multexpr#ID -> simpleexpr multexprprime
multexpr#NUM -> simpleexpr multexprprime
multexprprime#* -> * simpleexpr multexprprime
multexprprime#/ -> / simpleexpr multexprprime
multexprprime#) -> $
multexprprime#; -> $
multexprprime#< -> $
multexprprime#> -> $
multexprprime#<= -> $
multexprprime#>= -> $
multexprprime#== -> $
multexprprime#+ -> $
multexprprime#- -> $
simpleexpr#ID -> ID
simpleexpr#NUM -> NUM
simpleexpr#( -> ( arithexpr )
m