Mercurial > octave
comparison src/parse.y @ 1091:54abf1b3a8e9
[project @ 1995-02-02 00:30:14 by jwe]
author | jwe |
---|---|
date | Thu, 02 Feb 1995 00:30:14 +0000 |
parents | d5b0d11e3200 |
children | c210c5a25a48 |
comparison
equal
deleted
inserted
replaced
1090:d5b0d11e3200 | 1091:54abf1b3a8e9 |
---|---|
298 global_command = 0; | 298 global_command = 0; |
299 promptflag = 1; | 299 promptflag = 1; |
300 YYABORT; | 300 YYABORT; |
301 } | 301 } |
302 | simple_list parse_error | 302 | simple_list parse_error |
303 { | 303 { ABORT_PARSE; } |
304 yyerror ("parse error"); | |
305 ABORT_PARSE; | |
306 } | |
307 | parse_error | 304 | parse_error |
308 { | 305 { ABORT_PARSE; } |
309 yyerror ("parse error"); | |
310 ABORT_PARSE; | |
311 } | |
312 ; | 306 ; |
313 | 307 |
314 input1 : '\n' | 308 input1 : '\n' |
315 { $$ = 0; } | 309 { $$ = 0; } |
316 | simple_list | 310 | simple_list |
320 | simple_list END_OF_INPUT | 314 | simple_list END_OF_INPUT |
321 { $$ = $1; } | 315 { $$ = $1; } |
322 ; | 316 ; |
323 | 317 |
324 parse_error : LEXICAL_ERROR | 318 parse_error : LEXICAL_ERROR |
319 { yyerror ("parse error"); } | |
325 | error | 320 | error |
326 ; | 321 ; |
327 | 322 |
328 simple_list : semi_comma | 323 simple_list : semi_comma |
329 { $$ = 0; } | 324 { $$ = 0; } |