oxidic / oxido

Oxido is a statically typed interpreted programming language for making CLI tools and scripts.
https://oxido.megatank58.xyz
MIT License
8 stars 3 forks source link

Parser not parsing, math not mathing #9

Closed cheeze2000 closed 1 year ago

cheeze2000 commented 2 years ago

https://github.com/oxidite/oxido/blob/refactor/src/lexer/mod.rs#L353

you shouldn't consume the token before checking whether you should stop the loop, simply peek the token and then consume right before you parse again