summaryrefslogtreecommitdiffstats
path: root/parser.y
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-09-23 14:49:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2011-09-23 14:49:00 -0700
commitd11481b8cd38d63d21d50fb1b7fc9c49a7f21c0d (patch)
tree7dae5806116bab644503c2b29b1f4c8824d52368 /parser.y
parentb8b81379badbe9f5d91a10e521ac2985b5da4979 (diff)
downloadtxr-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.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/parser.y b/parser.y
index 98d299f3..7fb277af 100644
--- a/parser.y
+++ b/parser.y
@@ -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;