comparison libinterp/parse-tree/parse.h @ 16142:26d65d677557

rename yyerror to bison_error and make it a member of octave_parser class * parse.h, oct-parse.yy (octave_parser::bison_error): New function derived from yyerror. Change all explicit calls of yyerror to call bison_error instead. (yyerror): Forward to bison_error for the current parser.
author John W. Eaton <jwe@octave.org>
date Wed, 27 Feb 2013 15:40:49 -0500
parents 2fd39ab12209
children 49dfba4fd3c5
comparison
equal deleted inserted replaced
16141:c6b2409672e9 16142:26d65d677557
324 // Append a statement to an existing statement list. 324 // Append a statement to an existing statement list.
325 tree_statement_list * 325 tree_statement_list *
326 append_statement_list (tree_statement_list *list, char sep, 326 append_statement_list (tree_statement_list *list, char sep,
327 tree_statement *stmt, bool warn_missing_semi); 327 tree_statement *stmt, bool warn_missing_semi);
328 328
329 // Generic error messages.
330 void bison_error (const char *s);
331
329 // TRUE means that we have encountered EOF on the input stream. 332 // TRUE means that we have encountered EOF on the input stream.
330 bool end_of_input; 333 bool end_of_input;
331 334
332 // For unwind protect. 335 // For unwind protect.
333 static void cleanup (octave_parser *parser) { delete parser; } 336 static void cleanup (octave_parser *parser) { delete parser; }