gramgram

 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 AX LETNTS LETNT BIGLET NT TR LETTRS LETTR RS RUL LR RR SEQ
$TERM "\n" "$AXIOM" " " "'" "E" "T" "F" "$NTERM" "$TERM" """ "+" "*" "(" ")" "n" "$RULE" "="
$RULE G = AX "\n" NT "\n" TR "\n" RS
$RULE AX = "$AXIOM" LETNT
$RULE LETNTS = LETNT
LETNT " " LETNTS
$RULE LETNT = BIGLET
BIGLET "'"
$RULE BIGLET = "E"
"T"
"F"
$RULE NT = "$NTERM" LETNTS
$RULE TR = "$TERM" LETTRS
$RULE LETTRS = """ LETTR """
LETTR " " LETTRS
$RULE LETTR = "+"
"*"
"("
")"
"n"
$RULE RS = RUL "\n"
RUL "\n" RS
$RULE RUL = "$RULE" LR "=" RR
$RULE LR = LETNT
$RULE RR = SEQ
SEQ RR
$RULE SEQ = LETTR
LETNT
LETTR SEQ
LETNT SEQ