Mercurial > hg > octave-nkf
comparison libinterp/parse-tree/oct-parse.in.yy @ 17326:f444e4cef9b9
avoid exiting Octave on parse error (bug #39862)
* oct-parse.in.yy (input): Use "parse_error" instead of
"simple_list parse_error".
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 24 Aug 2013 12:44:23 -0400 |
parents | 4c1ae06111c9 |
children | 091e4df179de |
comparison
equal
deleted
inserted
replaced
17325:8cfc28809a07 | 17326:f444e4cef9b9 |
---|---|
316 { | 316 { |
317 lexer.end_of_input = true; | 317 lexer.end_of_input = true; |
318 parser.stmt_list = $1; | 318 parser.stmt_list = $1; |
319 YYACCEPT; | 319 YYACCEPT; |
320 } | 320 } |
321 | simple_list parse_error | 321 | parse_error |
322 { ABORT_PARSE; } | 322 { ABORT_PARSE; } |
323 ; | 323 ; |
324 | 324 |
325 simple_list : opt_sep_no_nl | 325 simple_list : opt_sep_no_nl |
326 { $$ = 0; } | 326 { $$ = 0; } |