diff options
author | Adrian Thurston <thurston@complang.org> | 2012-05-20 07:48:14 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-05-20 07:48:14 -0400 |
commit | 34d585363eef199b024016f1dcfa916db206cb32 (patch) | |
tree | f0bb864dafeacfe6fb171db79d343ef6d6c8dde1 /test | |
parent | 577e7426eb757aa118fbabf7dfa70d1308b8ac22 (diff) | |
download | colm-34d585363eef199b024016f1dcfa916db206cb32.tar.gz |
updated rubyhere test for follow-ignore
Verified and updated rubyhere test for the parsing of follow ignore tokens. The
foobar loses the whitespace ahead of the content to previous tokens.
Diffstat (limited to 'test')
-rw-r--r-- | test/rubyhere.exp | 5 | ||||
-rw-r--r-- | test/rubyhere.lm | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/rubyhere.exp b/test/rubyhere.exp index ea9adf01..9c8f2726 100644 --- a/test/rubyhere.exp +++ b/test/rubyhere.exp @@ -1,5 +1,4 @@ -<start><_repeat_item><item><statement><call><id>print</id><_literal_0008>(</_literal_0008><_opt_arglist><arglist><primary><heredoc><_literal_0005><<</_literal_0005><here_id>DATA1</here_id></heredoc></primary><_repeat_arglist_more><arglist_more><_literal_0007>,</_literal_0007><primary><id>more</id></primary></arglist_more><arglist_more><_literal_0007>,</_literal_0007><primary><heredoc><_literal_0005><<</_literal_0005><here_id>DATA2</here_id></heredoc></primary></arglist_more><arglist_more><_literal_0007>,</_literal_0007><primary><number>99</number></primary></arglist_more></_repeat_arglist_more></arglist></_opt_arglist><_literal_0009>)</_literal_0009></call></statement><_literal_000a>!</_literal_000a></item><item><foobar> -print( <<DATA1, more, <<DATA2, 99 ) +<start><_repeat_item><item><statement><call><id>print</id><_literal_0008>(</_literal_0008><_opt_arglist><arglist><primary><heredoc><_literal_0005><<</_literal_0005><here_id>DATA1</here_id></heredoc></primary><_repeat_arglist_more><arglist_more><_literal_0007>,</_literal_0007><primary><id>more</id></primary></arglist_more><arglist_more><_literal_0007>,</_literal_0007><primary><heredoc><_literal_0005><<</_literal_0005><here_id>DATA2</here_id></heredoc></primary></arglist_more><arglist_more><_literal_0007>,</_literal_0007><primary><number>99</number></primary></arglist_more></_repeat_arglist_more></arglist></_opt_arglist><_literal_0009>)</_literal_0009></call></statement><_literal_000a>!</_literal_000a></item><item><foobar>print( <<DATA1, more, <<DATA2, 99 ) "&^#(@ almost !arbitrary text! DATA1 @@ -7,4 +6,4 @@ hello world DATA2 # error here -</foobar></item></_repeat_item></start>
\ No newline at end of file +</foobar></item></_repeat_item></start> diff --git a/test/rubyhere.lm b/test/rubyhere.lm index 37004aaa..0ce0c54e 100644 --- a/test/rubyhere.lm +++ b/test/rubyhere.lm @@ -79,7 +79,7 @@ def statement [primary] | [call] -token foobar /any*/ +token foobar /any+/ def item [statement '!'] @@ -90,3 +90,4 @@ def start S: start = parse start( stdin ) print_xml(S) +print('\n') |