diff libinterp/parse-tree/lex.h @ 16118:f8e463523229

move more static lexer helper functions to lexical_feedback class * lex.h, lex.ll (display_token, lexer_debug): Declare as members of lexical_feedback class. Change all callers. (display_state): New argument, STATE. (lexer_debug): Pass YYSTATE to display_state.
author John W. Eaton <jwe@octave.org>
date Tue, 26 Feb 2013 11:50:41 -0500
parents 4f6c37cfbdce
children 4b68eb9b98b0
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.h	Tue Feb 26 11:47:59 2013 -0500
+++ b/libinterp/parse-tree/lex.h	Tue Feb 26 11:50:41 2013 -0500
@@ -276,6 +276,10 @@
 
   void gripe_matlab_incompatible_operator (const std::string& op);
 
+  void display_token (int tok);
+
+  void lexer_debug (const char *pattern, const char *text);
+
   // TRUE means that we should convert spaces to a comma inside a
   // matrix definition.
   bool convert_spaces_to_comma;