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.
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)
```
3 years ago
..
ast evalexpr: introduce single op_kind enum 3 years ago
eval evalexpr: introduce single op_kind enum 3 years ago
parse evalexpr: parse: do not use operator kind directly 3 years ago
evalexpr.c evalexpr: allow choosing parser at build time 3 years ago