nlsandler / write_a_c_compiler

Test suite to help you write your own C compiler
https://norasandler.com/2017/11/29/Write-a-Compiler.html
MIT License
855 stars 97 forks source link

Add the ability to test only up to some stage. #6

Open stroxler opened 6 years ago

stroxler commented 6 years ago

There is now an optional second argument to the test script, so that you can, e.g., test only the first stage programs.

nlsandler commented 5 years ago

Thanks for this PR! Unfortunately, it won't work together with PR 3, which also uses positional arguments.

Would you mind updating this so it will still work properly when PR 3 is merged? Maybe add a --max-stage flag?