Mercurial > hg > octave-lyh
diff libinterp/parse-tree/lex.h @ 16257:db7f07b22b9b
1/10 commits reworking the lexer
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 11 Mar 2013 14:14:41 -0400 |
parents | 12bf6a3f8c45 |
children | 5c32368509a2 0b5ab09dfce4 |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.h +++ b/libinterp/parse-tree/lex.h @@ -282,6 +282,10 @@ bool space_follows_previous_token (void) const; + bool previous_token_is_binop (void) const; + + bool previous_token_may_be_command (void) const; + // true means that we have encountered eof on the input stream. bool end_of_input; @@ -521,6 +525,8 @@ int eat_whitespace (void); + bool whitespace_is_significant (void); + void handle_number (void); void handle_continuation (void); @@ -629,6 +635,10 @@ bool convert = false, bool bos = false, bool qit = false); + int handle_assign_op (const char *pattern, int tok); + + int handle_incompatible_assign_op (const char *pattern, int tok); + int handle_op_internal (const char *pattern, int tok, bool convert, bool bos, bool qit, bool compat); @@ -638,6 +648,8 @@ int count_token (int tok); + int count_token_internal (int tok); + int show_token (int tok); // For unwind protect.