plum-umd / the-838e-compiler

Compiler for CMSC 838E
2 stars 0 forks source link

Support for arity-checking #26

Closed sroy4899 closed 3 years ago

sroy4899 commented 3 years ago

Code for supporting arity-checking. It appears to be a deceptively easy fix (just add a register and do some trivial comparisons), so if there's something I missed, please do let me know.

I also decided to forego going ham with testing to avoid polluting the test suite for such a simple change, so only two pretty basic tests are provided, but if we'd like more, I can always add them in!

Comments and feedback always appreciated :) Closes #10