Mercurial > octave
view .gitattributes @ 31478:ef9c804676b9 stable
don't accept '!' to indicate ignored function parameters
* lex.ll ("~", "!", lexical_feedback::previous_token_is_binop,
base_lexer::display_token): Use separate '~' and '!' tokens instead of
recognizing both as EXPR_NOT.
* oct-parse.yy: Adjust list of tokens and precedence list in parser.
(magic_tilde): Accept only '~', not EXPR_NOT.
(oper_expr, power_expr, attr, base_parser::make_prefix_op):
Handle '~' and '!' tokens separately.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 18 Nov 2022 23:49:32 -0500 |
parents | c6f9ff84dc84 |
children |