You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This allows for having different tokens mapping to the same mathematical operator, with potentially different semantics. For example, we can add `$` as another notation for factorial, but allowing it to be chained: meaning we can evaluate `3$$` to `720`, and still keep `3!!` as a syntax error. To do so, we simply need to add the following line to our operator table: ```c POSTOP(UNOP_FACT, 5, ASSOC_LEFT, '$', 0) ``` |
3 years ago | |
---|---|---|
.. | ||
ast | 3 years ago | |
eval | 3 years ago | |
parse | 3 years ago | |
evalexpr.c | 3 years ago |