Mercurial > octave
view CITATION @ 21073:f7cc48f601d2
additional reworking of error handling in the parser (bug #46877)
* oct-parse.in.yy (ABORT_PARSE): Delete. Replace all uses with
YYABORT. Ensure that all uses of octave_base_parser::bison_error are
followed by YYABORT.
(octave_base_parser::make_for_command): Always delete unused parse
tree elements if an error is detected.
octave_base_parser::make_index_expression): Likewise.
(octave_base_parser::parse_error_msg): New data member.
(octave_base_parser::bison_error): Store error message for later use
instead of calling parse_error.
(octave_parser::run, octave_push_parser::run): Check return status of
Bison-generated parser and call parse_error here with stored message.
Handle exceptions generated while parsing.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 14 Jan 2016 16:40:12 -0500 |
parents | f5d9e57d4380 |
children | d77caa2d523d |
line wrap: on
line source
To cite GNU Octave in publications use: John W. Eaton, David Bateman, Søren Hauberg, Rik Wehbring (2015). GNU Octave version 4.0.0 manual: a high-level interactive language for numerical computations. URL http://www.gnu.org/software/octave/doc/interpreter/ A BibTeX entry for LaTeX users is: @book{, author = {John W. Eaton, David Bateman, S\oren Hauberg, and Rik Wehbring}, title = {{GNU Octave} version 4.0.0 manual: a high-level interactive language for numerical computations}, year = {2015}, url = {http://www.gnu.org/software/octave/doc/interpreter}, } We have invested a lot of time and effort in creating GNU Octave, please cite it when using it. See also `citation pkgname' for citing Octave packages.