aboutsummaryrefslogtreecommitdiff
path: root/test/empty_clauses.g
diff options
context:
space:
mode:
authorsienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2011-07-21 11:17:58 -0400
committersienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2011-07-21 11:17:58 -0400
commitbe5a70d3aa1c30d7c86d77649b747de2838566ce (patch)
tree7c27103a4d37b61f5dba748672f0685536e667d0 /test/empty_clauses.g
parent77ce1e78848ba9eead2566e3bc55523aab4547e8 (diff)
downloadexyapps-be5a70d3aa1c30d7c86d77649b747de2838566ce.tar.gz
initial import of yapps from debian sources
git-svn-id: http://svn.stsci.edu/svn/ssb/etal/exyapps/trunk@356 d34015c8-bcbb-4646-8ac8-8ba5febf221d
Diffstat (limited to 'test/empty_clauses.g')
-rw-r--r--test/empty_clauses.g10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/empty_clauses.g b/test/empty_clauses.g
new file mode 100644
index 0000000..3b435f2
--- /dev/null
+++ b/test/empty_clauses.g
@@ -0,0 +1,10 @@
+# This parser tests the use of OR clauses with one of them being empty
+#
+# The output of --dump should indicate the FOLLOW set for (A | ) is 'c'.
+
+parser Test:
+ rule TestPlus: ( A | ) 'c'
+ rule A: 'a'+
+
+ rule TestStar: ( B | ) 'c'
+ rule B: 'b'* \ No newline at end of file