diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-09-23 14:49:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-09-23 14:49:00 -0700 |
commit | d11481b8cd38d63d21d50fb1b7fc9c49a7f21c0d (patch) | |
tree | 7dae5806116bab644503c2b29b1f4c8824d52368 /parser.y | |
parent | b8b81379badbe9f5d91a10e521ac2985b5da4979 (diff) | |
download | txr-d11481b8cd38d63d21d50fb1b7fc9c49a7f21c0d.tar.gz txr-d11481b8cd38d63d21d50fb1b7fc9c49a7f21c0d.tar.bz2 txr-d11481b8cd38d63d21d50fb1b7fc9c49a7f21c0d.zip |
* match.c, parser.y: Support for old output syntax removed.
Leading :nothrow with trailing material is an error now.
* txr.1: Updated. Made note of errors in pipes being asynchronous.
Diffstat (limited to 'parser.y')
-rw-r--r-- | parser.y | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -267,13 +267,14 @@ catch_clauses_opt : CATCH ')' newl output_clause : OUTPUT ')' o_elems '\n' out_clauses - END newl { $$ = list(output_s, $5, $3, nao); } + END newl { $$ = nil; + yyerror("obsolete output syntax: trailing material"); } | OUTPUT ')' newl out_clauses END newl { $$ = list(output_s, $4, nao); } | OUTPUT exprs ')' newl out_clauses - END newl { $$ = list(output_s, $5, nil, $2, nao); } + END newl { $$ = list(output_s, $5, $2, nao); } | OUTPUT exprs ')' o_elems '\n' out_clauses END newl { $$ = nil; |