From 469bbcf0701e1eb8a6670c23145b0da87357e178 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 25 Mar 2012 20:00:08 +0000 Subject: Code is all reorganized. We're about ready to release. I should write up a little explenation of the arrangement. --- tests/bnftest | 18 ++++++++++++++++++ tests/bnftest.2 | 24 ++++++++++++++++++++++++ tests/test.utf16 | 1 + tests/test.utf16be | 1 + tests/test.utf16le | 1 + 5 files changed, 45 insertions(+) create mode 100644 tests/bnftest create mode 100644 tests/bnftest.2 create mode 100644 tests/test.utf16 create mode 100644 tests/test.utf16be create mode 100644 tests/test.utf16le (limited to 'tests') diff --git a/tests/bnftest b/tests/bnftest new file mode 100644 index 0000000..7e61b1a --- /dev/null +++ b/tests/bnftest @@ -0,0 +1,18 @@ +tokens = tokPlus tokMinus tokMult tokDivide tokOpenParen tokCloseParen + tokEquals tokNumber; + +input: input line + | + ; + +line: expr tokEquals {print} + ; + +expr: expr tokPlus expr {add} + | expr tokMinus expr {subtract} + | expr tokMult expr {multiply} + | expr tokDivide expr {divide} + | tokOpenParen expr tokCloseParen + | [tokNumber] + ; + diff --git a/tests/bnftest.2 b/tests/bnftest.2 new file mode 100644 index 0000000..229943b --- /dev/null +++ b/tests/bnftest.2 @@ -0,0 +1,24 @@ +tokens = tokPlus tokMinus tokMult tokDivide tokOpenParen tokCloseParen + tokEquals tokNumber; + +input: line input# + | + ; + +input#: line input# + | + ; + +line: expr tokEquals {print} + ; + +expr: tokOpenParen expr tokCloseParen expr# + | [tokNumber] expr# + ; + +expr#: tokPlus expr {add} expr# + | tokMinus expr {subtract} expr# + | tokMult expr {multiply} expr# + | tokDivide expr {divide} expr# + | + ; diff --git a/tests/test.utf16 b/tests/test.utf16 new file mode 100644 index 0000000..86a63c3 --- /dev/null +++ b/tests/test.utf16 @@ -0,0 +1 @@ +¥Ëæ)˜Ø=Þ<Ûÿßý$H \ No newline at end of file diff --git a/tests/test.utf16be b/tests/test.utf16be new file mode 100644 index 0000000..136ad1a --- /dev/null +++ b/tests/test.utf16be @@ -0,0 +1 @@ +þÿ¥Ëæ)˜Ø=Þ<Ûÿßý$H \ No newline at end of file diff --git a/tests/test.utf16le b/tests/test.utf16le new file mode 100644 index 0000000..9f610d6 --- /dev/null +++ b/tests/test.utf16le @@ -0,0 +1 @@ +ÿþ¥Ëæ˜)=Ø<ÞÿÛýßH$ \ No newline at end of file -- cgit v1.2.3