Like so:
type
Operation = enum
lit, plus, minus, mul, division
Node = ref object
case op: Operation
of lit:
value: int
else:
le, ri: Node
Run
- Best way to represent AST i_am_hal
- Re: Best way to represent AST Araq
- Re: Best way to represent AST bluenote
- Re: Best way to represent AST i_am_hal
- Re: Best way to represent AST mratsim
