Change the grammar to recognize decimal numbers such as 0.01, 5.21, or 10.2.
Closed this issue · 2 comments
datomnurdin commented
I already set regular expression for number, the compiler can receive decimal number but the output not in decimal format.
/-?[0-9]+(\\.[0-9]*)?/
Please advice. Thank you.
orangeduck commented
Please see previous issues: #110
datomnurdin commented
I'm using this guideline (https://github.com/ethan-thames/ploi-lang/blob/master/ploi.c), thanks!