diff src/lex.h @ 8746:5dd06f19e9be

handle commands in the lexer
author John W. Eaton <jwe@octave.org>
date Sun, 15 Feb 2009 23:49:15 -0500
parents 6dc61981d18b
children 8ed42c679af5
line wrap: on
line diff
--- a/src/lex.h
+++ b/src/lex.h
@@ -82,6 +82,10 @@
   // matrix definition.
   bool convert_spaces_to_comma;
 
+  // TRUE means we are at the beginning of a statement, where a
+  // command name is possible.
+  bool at_beginning_of_statement;
+
   // TRUE means we're in the middle of defining a function.
   bool defining_func;
 
@@ -116,9 +120,6 @@
   // GAG.  Stupid kludge so that [[1,2][3,4]] will work.
   bool do_comma_insert;
 
-  // TRUE means we're doing a raw input command.
-  bool doing_rawcommand;
-    
   // TRUE means we're looking at an indirect reference to a
   // structure element.
   bool looking_at_indirect_ref;