Closed cvauclair closed 3 years ago
@ThierryBleau should the negation symbol be considered a prefix operator or part of the literal? E.g.: Should -2
be parsed as ELit(Int(-2))
or EApp(EVar("-"), ELit(Int(2)))
?
How does OCaml handle it?
I believe it's handled as an operator
Ok so we can settle for that now and revisit if it would be desirable to also add minuses as part of literals
Description
The Mesh Engine should be able to parse expressions containing prefix operators. Prefix operators consist of any sequence of the following characters: +, -, *, /, >, <, =, ?, |, $, #, @, ~, !, %.
Examples: