DylanSp / wheel-lang

A small toy imperative language (with some OOP features) for demonstrating and practicing language design/implementation.
MIT License
14 stars 0 forks source link

Add unary negation #12

Closed DylanSp closed 4 years ago

DylanSp commented 4 years ago

I'll probably want to just emit +/-/*/etc. tokens in the scanner, rather than categorizing them as operations, then let the parser determine if - is a subtraction or a unary minus.