diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-02-26 21:36:13 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-02-26 21:36:13 +0200 |
commit | 2b02c5c64a93608c347ffaa312d88d52f93888da (patch) | |
tree | a2259a192b3c83c79cfdf21a2281d101de42a0ef /awkgram.y | |
parent | 033a052f4eed4a5d3a7963e91a4844ebc3bebc00 (diff) | |
download | egawk-2b02c5c64a93608c347ffaa312d88d52f93888da.tar.gz egawk-2b02c5c64a93608c347ffaa312d88d52f93888da.tar.bz2 egawk-2b02c5c64a93608c347ffaa312d88d52f93888da.zip |
Bug fix for expression list error.
Diffstat (limited to 'awkgram.y')
-rw-r--r-- | awkgram.y | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -1220,11 +1220,23 @@ expression_list | error { $$ = NULL; } | expression_list error - { $$ = NULL; } + { + /* + * Returning the expression list instead of NULL lets + * snode get a list of arguments that it can count. + */ + $$ = $1; + } | expression_list error exp - { $$ = NULL; } + { + /* Ditto */ + $$ = mk_expression_list($1, $3); + } | expression_list comma error - { $$ = NULL; } + { + /* Ditto */ + $$ = $1; + } ; /* Expressions, not including the comma operator. */ |