phillipstanleymarbell / Noisy-lang-compiler

Noisy language compiler
MIT License
17 stars 1 forks source link

Constants of value 0 cause syntax error #247

Open jarhodes314 opened 6 years ago

jarhodes314 commented 6 years ago

Describe the bug Constants of value 0 cause an error - e.g. Syntax error, /home/james/code/grapples/Websites/djangoServer_v1/tempFiles/.nt line 7 position 17, at ";" while parsing quantity expression...

The error is caused by the check in line 361 of newton-parser.c It may be related to issue 155

To Reproduce Attempt to compile any file with a constant of value 0.

Expected behavior Should compile without errors

phillipstanleymarbell commented 6 years ago

Thanks for filing this. This is a known bug and I would suggest working around it for now.