evalexpr/src/parse
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
..
climbing_parse.c evalexpr: parse: do not use operator kind directly 2020-11-02 16:13:33 +01:00
operators.inc evalexpr: parse: prepare for multi-char operators 2020-11-02 16:13:33 +01:00
parse.h evalexpr: parse: add precedence climbing parser 2020-11-02 15:48:29 +01:00
recursive_parse.c evalexpr: introduce single op_kind enum 2020-11-02 16:13:33 +01:00