Mercurial > hg > octave-lyh
diff libinterp/parse-tree/token.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 15f55df088e7 |
line wrap: on
line diff
--- a/libinterp/parse-tree/token.h +++ b/libinterp/parse-tree/token.h @@ -75,6 +75,9 @@ ~token (void); + void mark_may_be_command (void) { maybe_cmd = true; } + bool may_be_command (void) const { return maybe_cmd; } + void mark_trailing_space (void) { tspc = true; } bool space_follows_token (void) const { return tspc; } @@ -106,6 +109,7 @@ token& operator = (const token& tok); + bool maybe_cmd; bool tspc; int line_num; int column_num;