The binaryen IR doesn't support <= and >= operations directly. We could change our CodeGen to generate nested binaryen expressions if we come across a <= or >= sign, but we may as well simplify our own AST structure to match the binaryen IR.
Changing the parser to parse the <= and >= operations as:
The binaryen IR doesn't support <= and >= operations directly. We could change our CodeGen to generate nested binaryen expressions if we come across a <= or >= sign, but we may as well simplify our own AST structure to match the binaryen IR.
Changing the parser to parse the <= and >= operations as:
5 >= 6
will allow a much simpler CodeGen process.
BinaryOperationNode