c2lang / c2compiler

the c2 programming language
c2lang.org
Apache License 2.0
704 stars 49 forks source link

#50 Prune unary plus from AST, making it a complete no-op. #86

Closed lerno closed 5 years ago

lerno commented 5 years ago

This is a version of unary plus pruning that completely makes it a no-op by skipping over it in AST parsing already. See discussion around #50 on how this differs from C.

Note that this change does not affect normal binary operations.

bvdberg commented 5 years ago

See comments in issue #50

bvdberg commented 5 years ago

tested and merged, good job!