-
Notifications
You must be signed in to change notification settings - Fork 0
/
grammar.txt
61 lines (61 loc) · 1.76 KB
/
grammar.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
57
58
59
60
61
START program bo bc cbo MAINPROGRAM cbc
MAINPROGRAM DECLARATIONSTMT DECLARATIONSTMTS ASSIGNMENTSTMT ASSIGNMENTSTMTS
DECLARATIONSTMTS DECLARATIONSTMT DECLARATIONSTMTS
DECLARATIONSTMTS epsilon
ASSIGNMENTSTMTS ASSIGNMENTSTMT ASSIGNMENTSTMTS
ASSIGNMENTSTMTS epsilon
DECLARATIONSTMT declare DEC
DEC var_id col SINGLE
DEC list of variables var_id var_id VARIABLE_NAMES col SINGLE
SINGLE TYPE semicol
SINGLE ARRAYTYPE
TYPE integer
TYPE boolean
TYPE real
VARIABLE_NAMES var_id VARIABLE_NAMES
VARIABLE_NAMES epsilon
ARRAYTYPE RECTANGULAR_ARRAY
ARRAYTYPE JAGGED_ARRAY
RECTANGULAR_ARRAY array RANGES of integer semicol
RANGES RANGE RANGES
RANGES epsilon
RANGE sqbo INDEX rangeop INDEX sqbc
INDEX number
INDEX var_id
JAGGED_ARRAY jagged array sqbo number rangeop number sqbc sqbo sqbc DIMJAGGED of integer semicol MAKEROWS
DIMJAGGED sqbo sqbc
DIMJAGGED epsilon
MAKEROWS r1 sqbo number sqbc col size number col values cbo NUM_LIST cbc MAKEROWS2
MAKEROWS r1 sqbo number sqbc col size number col values cbo LISTOFNUMLIST cbc MAKEROWS2
MAKEROWS2 MAKEROWS
MAKEROWS2 epsilon
NUM_LIST number semicol NUM_LIST
NUM_LIST number
LISTOFNUMLIST NUMS semicol LISTOFNUMLIST
LISTOFNUMLIST NUMS
NUMS number NUMS
NUMS number
ASSIGNMENTSTMT ARITHMETICSTATEMENT
ASSIGNMENTSTMT LOGICALSTATEMENT
ARITHMETICSTATEMENT VAR assignop ARITHMETICOP semicol
VAR var_id sqbo INDEX_LIST sqbc
VAR var_id
INDEX_LIST INDEX INDEX_LIST
INDEX_LIST INDEX
ARITHMETICOP TERM ADDSUBOP ARITHMETICOP
ARITHMETICOP TERM
TERM INDEX2 MULTDIVOP TERM
TERM INDEX2
INDEX2 VAR
INDEX2 number
INDEX2 rnumber
ADDSUBOP plus
ADDSUBOP minus
MULTDIVOP mul
MULTDIVOP div
LOGICALSTATEMENT var_id assignop LOGICALOP semicol
LOGICALOP LOGICALTERM logor LOGICALOP
LOGICALOP LOGICALTERM
LOGICALTERM LOGICALFACTOR logand LOGICALTERM
LOGICALTERM LOGICALFACTOR
LOGICALFACTOR var_id