AXIOM NTERM NT AL ALT ALNT LR RR TERM AXIOM NTERM TERM RULE RULE NT RU

 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
$AXIOM G
$NTERM R, A, T, NT, AL, ALT, ALNT, LR, RR, B
$TERM "$AXIOM" "E'" "T'" "E" "T" "F" "$NTERM" "$TERM" """ "+" "*" "(" ")" "n" "$RULE" "=" "\n"
$RULE G = A "\n" NT "\n" T "\n" R
$RULE R = "$RULE" LR "=" RR AL "\n" R
$EPS
$RULE A = "$AXIOM" LR
$RULE T = "$TERM" """ B """ ALT
$RULE NT = "$NTERM" LR ALNT
$RULE AL "\n"
$EPS
$RULE ALT = """ B """ ALT
$EPS
$RULE ALNT = LR ALNT
$EPS
$RULE LR = "T"
"T'"
"E"
"E'"
"F"
$RULE RR = "n" RR
"*" RR
"+" RR
"(" RR
")" RR
"T" RR
"T'" RR
"E" RR
"E'" RR
"F" RR
$EPS