comparison libinterp/parse-tree/token.h @ 20285:8aa424ffc076

handle all end token types when reporting parse errors (bug #44824) * oct-parse.in.yy (octave_base_parser::end_error, octave_base_parser::end_token_ok): Handle all end token types in switch statement. Alphabetize list of cases (after simple_end). * token.h (end_tok_type): Alphabetize list of token types (after simple_end).
author John W. Eaton <jwe@octave.org>
date Mon, 13 Apr 2015 23:41:08 -0400
parents 734a77207e2e
children
comparison
equal deleted inserted replaced
20284:ad1a2c03992b 20285:8aa424ffc076
54 if_end, 54 if_end,
55 methods_end, 55 methods_end,
56 parfor_end, 56 parfor_end,
57 properties_end, 57 properties_end,
58 switch_end, 58 switch_end,
59 try_catch_end,
60 unwind_protect_end,
59 while_end, 61 while_end,
60 try_catch_end,
61 unwind_protect_end
62 }; 62 };
63 63
64 token (int tv, int l = -1, int c = -1); 64 token (int tv, int l = -1, int c = -1);
65 token (int tv, bool is_keyword, int l = -1, int c = -1); 65 token (int tv, bool is_keyword, int l = -1, int c = -1);
66 token (int tv, const char *s, int l = -1, int c = -1); 66 token (int tv, const char *s, int l = -1, int c = -1);