I would just make your methods all return float: method getValue(this: DigitToken): float = return float(this.value) Run
since you don't lose information doing that anyway.
I would just make your methods all return float: method getValue(this: DigitToken): float = return float(this.value) Run
since you don't lose information doing that anyway.