Mercurial > octave
changeset 27765:dd93e1fdc7db
require position info when creating tokens for the parser
* token.h (token::token): Eliminate default argument values.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 02 Dec 2019 15:23:01 -0600 |
parents | f64e399b6dda |
children | 0ca7f17de041 |
files | libinterp/parse-tree/token.h |
diffstat | 1 files changed, 9 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/token.h Mon Dec 02 10:25:57 2019 -0600 +++ b/libinterp/parse-tree/token.h Mon Dec 02 15:23:01 2019 -0600 @@ -31,8 +31,7 @@ namespace octave { - class - token + class token { public: @@ -65,17 +64,15 @@ while_end, }; - token (int tv, int l = -1, int c = -1); - token (int tv, bool is_keyword, int l = -1, int c = -1); - token (int tv, const char *s, int l = -1, int c = -1); - token (int tv, const std::string& s, int l = -1, int c = -1); - token (int tv, double d, const std::string& s = "", - int l = -1, int c = -1); - token (int tv, end_tok_type t, int l = -1, int c = -1); - token (int tv, const symbol_record& s, - int l = -1, int c = -1); + token (int tv, int l, int c); + token (int tv, bool is_keyword, int l, int c); + token (int tv, const char *s, int l, int c); + token (int tv, const std::string& s, int l, int c); + token (int tv, double d, const std::string& s, int l, int c); + token (int tv, end_tok_type t, int l, int c); + token (int tv, const symbol_record& s, int l, int c); token (int tv, const std::string& mth, const std::string& cls, - int l = -1, int c = -1); + int l, int c); // No copying!