Mercurial > octave
diff libinterp/parse-tree/lex.h @ 27777:3b6920ee4383
eliminate COMMAND_ARG_FINISH macro in lexer
* lex.h, lex.ll (base_lexer::finish_command_arg): New function to do
part of the work of the COMMAND_ARG_FINISH macro.
(COMMAND_ARG_FINISH): Delete macro. Replace all uses with some inline
code and a call to curr_lexer->finish_command_arg.
(base_lexer::handle_token (const std::string&, int)): Delete function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 05 Dec 2019 22:01:02 -0600 |
parents | cd566153edd6 |
children | 2f8559459314 |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.h Thu Dec 05 21:01:08 2019 -0600 +++ b/libinterp/parse-tree/lex.h Thu Dec 05 22:01:02 2019 -0600 @@ -747,7 +747,7 @@ int handle_op_internal (int tok, bool bos, bool compat); - int handle_token (const std::string& name, int tok); + int finish_command_arg (void); int handle_token (int tok, token *tok_val = nullptr);