diff options
author | Adrian Thurston <thurston@complang.org> | 2013-03-24 11:02:01 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2013-03-24 11:02:01 -0400 |
commit | f2450f57901b9e7dcf8391f3d38c3ac27d4305f5 (patch) | |
tree | 10e99ed7b55cf069a9d78b5322f285a1a046326f /test | |
parent | 2b3c4f2f506efcfbec6c1ebb5a5c4ce12cd0eada (diff) | |
download | colm-f2450f57901b9e7dcf8391f3d38c3ac27d4305f5.tar.gz |
added precedence declarations
Diffstat (limited to 'test')
-rw-r--r-- | test/accumbt1.exp | 1 | ||||
-rw-r--r-- | test/accumbt1.lm | 4 | ||||
-rw-r--r-- | test/ambig1.exp | 1 | ||||
-rw-r--r-- | test/ambig1.in | 0 | ||||
-rw-r--r-- | test/ambig1.lm | 5 | ||||
-rw-r--r-- | test/backtrack1.exp | 1 | ||||
-rw-r--r-- | test/backtrack1.in | 1 | ||||
-rw-r--r-- | test/backtrack1.lm | 6 |
8 files changed, 15 insertions, 4 deletions
diff --git a/test/accumbt1.exp b/test/accumbt1.exp deleted file mode 100644 index c315ba6d..00000000 --- a/test/accumbt1.exp +++ /dev/null @@ -1 +0,0 @@ -<start><prefix><id>id</id></prefix><choice1><number>77</number></choice1><choice2><number>88</number></choice2><string>"hello"</string><id>dude</id><id>dude</id></start>
\ No newline at end of file diff --git a/test/accumbt1.lm b/test/accumbt1.lm index be8c3464..77d56f55 100644 --- a/test/accumbt1.lm +++ b/test/accumbt1.lm @@ -1,3 +1,4 @@ +##### LM ##### # Token names. lex @@ -35,3 +36,6 @@ S: start = I() S = match S ~id 77 88 "hello" dude dude print_xml( S ) +print( '\n' ) +##### EXP ##### +<start><prefix><id>id</id></prefix><choice1><number>77</number></choice1><choice2><number>88</number></choice2><string>"hello"</string><id>dude</id><id>dude</id></start> diff --git a/test/ambig1.exp b/test/ambig1.exp deleted file mode 100644 index 7aafbddd..00000000 --- a/test/ambig1.exp +++ /dev/null @@ -1 +0,0 @@ -<ruby><compstmt><stmts></stmts><opt_terms></opt_terms></compstmt></ruby>
\ No newline at end of file diff --git a/test/ambig1.in b/test/ambig1.in deleted file mode 100644 index e69de29b..00000000 --- a/test/ambig1.in +++ /dev/null diff --git a/test/ambig1.lm b/test/ambig1.lm index ad7dd6e9..74df41bb 100644 --- a/test/ambig1.lm +++ b/test/ambig1.lm @@ -1,3 +1,4 @@ +##### LM ##### # # Grammar # @@ -597,6 +598,10 @@ parse RP: ruby[stdin] R: ruby = RP.tree print_xml( R ) +print( '\n' ) #for T: primary in R # print_xml( T, '\n\n' ) +##### IN ##### +##### EXP ##### +<ruby><compstmt><stmts></stmts><opt_terms></opt_terms></compstmt></ruby> diff --git a/test/backtrack1.exp b/test/backtrack1.exp deleted file mode 100644 index d90a1c2a..00000000 --- a/test/backtrack1.exp +++ /dev/null @@ -1 +0,0 @@ -<start><E><E><F><number>9</number></F></E><_literal_0001>+</_literal_0001><F><number>9</number></F></E></start>
\ No newline at end of file diff --git a/test/backtrack1.in b/test/backtrack1.in deleted file mode 100644 index 4e9079f2..00000000 --- a/test/backtrack1.in +++ /dev/null @@ -1 +0,0 @@ -9 + 9 diff --git a/test/backtrack1.lm b/test/backtrack1.lm index 13370444..2cf91598 100644 --- a/test/backtrack1.lm +++ b/test/backtrack1.lm @@ -1,3 +1,4 @@ +##### LM ##### # Token names. lex @@ -22,3 +23,8 @@ parse SP: start[ stdin ] S: start = SP.tree R: start = match S ~ 9 + 9 print_xml( R ) +print( '\n' ) +##### IN ##### +9 + 9 +##### EXP ##### +<start><E><E><F><number>9</number></F></E><_literal_0001>+</_literal_0001><F><number>9</number></F></E></start> |