summaryrefslogtreecommitdiff
path: root/ipl/packs/tcll1/if_ll1.grm
diff options
context:
space:
mode:
Diffstat (limited to 'ipl/packs/tcll1/if_ll1.grm')
-rw-r--r--ipl/packs/tcll1/if_ll1.grm6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipl/packs/tcll1/if_ll1.grm b/ipl/packs/tcll1/if_ll1.grm
new file mode 100644
index 0000000..50a0679
--- /dev/null
+++ b/ipl/packs/tcll1/if_ll1.grm
@@ -0,0 +1,6 @@
+# if-ll1
+# still not really LL(1), but as close as we can get
+start = statement .
+statement = if e then statement else_option
+ | i "=" e.
+else_option = [ else statement ].