summaryrefslogtreecommitdiff
path: root/ipl/packs/tcll1/c_nll1.grm
diff options
context:
space:
mode:
Diffstat (limited to 'ipl/packs/tcll1/c_nll1.grm')
-rw-r--r--ipl/packs/tcll1/c_nll1.grm16
1 files changed, 16 insertions, 0 deletions
diff --git a/ipl/packs/tcll1/c_nll1.grm b/ipl/packs/tcll1/c_nll1.grm
new file mode 100644
index 0000000..dd21dc5
--- /dev/null
+++ b/ipl/packs/tcll1/c_nll1.grm
@@ -0,0 +1,16 @@
+# c-nll1
+# not LL(1)
+
+start = s .
+s = e .
+s = i "=" e .
+e = e "+" t .
+e = e "-" t .
+e = t .
+t = f "*" t .
+t = f "/" t .
+t = f .
+f = i .
+f = n .
+f = "(" e ")" .
+