diff 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
line wrap: on
line diff
--- a/libinterp/parse-tree/parse.h	Wed Feb 27 14:51:21 2013 -0500
+++ b/libinterp/parse-tree/parse.h	Wed Feb 27 15:40:49 2013 -0500
@@ -326,6 +326,9 @@
   append_statement_list (tree_statement_list *list, char sep,
                          tree_statement *stmt, bool warn_missing_semi);
 
+  // Generic error messages.
+  void bison_error (const char *s);
+
   // TRUE means that we have encountered EOF on the input stream.
   bool end_of_input;