Parse common cases of < and > comparisons
Adding full support for these in expressions seems hard to do without introducing conflicts into the parser grammar, but in fact all reported cases have had parentheses around the comparison and we can support that with a few restrictions on the left side of `<`. Fixes #80 and #635. Also https://sourceforge.net/p/swig/bugs/1139/
This commit is contained in:
parent
017900d57e
commit
f2de21eb83
14 changed files with 98 additions and 20 deletions
|
|
@ -72,10 +72,8 @@
|
|||
|
||||
#define EXPR_LSHIFT 0xFF << 2
|
||||
#define EXPR_RSHIFT 0xFF >> 2
|
||||
/* FIXME
|
||||
#define EXPR_LT 0xFF < 255
|
||||
#define EXPR_GT 0xFF > 255
|
||||
*/
|
||||
#define EXPR_LT (0xFF < 255)
|
||||
#define EXPR_GT (0xFF > 255)
|
||||
#define EXPR_LTE 0xFF <= 255
|
||||
#define EXPR_GTE 0xFF >= 255
|
||||
#define EXPR_INEQUALITY 0xFF != 255
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue