Bruno BELANYI
77a7bdfddd
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) ``` |
||
---|---|---|
.. | ||
climbing_parse.c | ||
operators.inc | ||
parse.h | ||
recursive_parse.c |