evalexpr/src
Bruno BELANYI 77a7bdfddd evalexpr: parse: do not use operator kind directly
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)
```
2020-11-02 16:13:33 +01:00
..
ast evalexpr: introduce single op_kind enum 2020-11-02 16:13:33 +01:00
eval evalexpr: introduce single op_kind enum 2020-11-02 16:13:33 +01:00
parse evalexpr: parse: do not use operator kind directly 2020-11-02 16:13:33 +01:00
evalexpr.c evalexpr: allow choosing parser at build time 2020-11-02 15:48:30 +01:00