jserv / amacc

Small C Compiler generating ELF executable Arm architecture, supporting JIT execution
Other
1.01k stars 160 forks source link

Improve comma operator rigor #86

Closed HPCguy closed 2 years ago

HPCguy commented 2 years ago

Impose a stricter grammar at the cost of an extra line to clear my conscience.

HPCguy commented 2 years ago

After review, I see I had chosen my solution to avoid a great deal of complexity that would have been needed to accomodate the AST construction. I'm going to withdraw this change, and still keep a clear conscience, even though this implementation allows a "clever" person to add non-strictly conforming C constructs without the compiler complaining.