summaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-08-31 13:10:59 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-08-31 13:10:59 +0200
commitc5c75d786de3e6d21ec146df9e043896feb8dfba (patch)
tree5eb472fc0622c8a00226652b5f6b90a545401727 /old
parent21f6eb821811cd3c93cb6604da236a44d47e0749 (diff)
downloadcompilertests-c5c75d786de3e6d21ec146df9e043896feb8dfba.tar.gz
compilertests-c5c75d786de3e6d21ec146df9e043896feb8dfba.tar.bz2
.
Diffstat (limited to 'old')
-rw-r--r--old/README4
-rw-r--r--old/crenshaw.ebnf4
-rw-r--r--old/ebnf.ebnf (renamed from old/test1.ebnf)0
-rw-r--r--old/minie.ebnf3
4 files changed, 10 insertions, 1 deletions
diff --git a/old/README b/old/README
new file mode 100644
index 0000000..1b7cdcf
--- /dev/null
+++ b/old/README
@@ -0,0 +1,4 @@
+links
+-----
+
+http://www.icosaedro.it/bnf_chk/
diff --git a/old/crenshaw.ebnf b/old/crenshaw.ebnf
index 107f225..caf5bf0 100644
--- a/old/crenshaw.ebnf
+++ b/old/crenshaw.ebnf
@@ -13,6 +13,8 @@ Expression = Term { ( "+" | "-" ) Term } .
Term = Factor { ( "*" | "/" ) Factor } .
Factor = Num | "(" Expression ")" | Ident .
Assignment = Variable "=" Expression .
-Statement = Assignment Newline .
+Condition = Variable .
+IfStatement = "i" Condition Block "e" .
+Statement = { Assignment | IfStatement } Newline .
Block = { Statement } .
Program = Block "e" .
diff --git a/old/test1.ebnf b/old/ebnf.ebnf
index a100d4f..a100d4f 100644
--- a/old/test1.ebnf
+++ b/old/ebnf.ebnf
diff --git a/old/minie.ebnf b/old/minie.ebnf
new file mode 100644
index 0000000..a315889
--- /dev/null
+++ b/old/minie.ebnf
@@ -0,0 +1,3 @@
+Digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" .
+Letter = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z" |
+ "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z".