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

Some stage 4 files cannot be lexed (at stage 4 of the blog) #9

Closed stevejb71 closed 5 years ago

stevejb71 commented 5 years ago

Files starting with skip_onfailure can't be lexed at stage 4.

The blog says "It should work for all stage 1-4 examples in the test suite, including the invalid ones."

chadbramwell commented 5 years ago

I had this same issue! Looks like they depend on local variables which is a stage 5 thing.

nlsandler commented 5 years ago

Thanks for flagging this! I've updated the blog to clarify that you don't need to handle lexing and parsing those three test cases at this stage.