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

Stage 4, invalid/split_le.c cannot be lexed #2

Closed stevejb71 closed 6 years ago

stevejb71 commented 6 years ago

There's no token for = at stage 4, so invalid/split_le.c cannot pass the lexer (but the blog says all invalid files should).

split_le.c is:

int main() {     return 1 < = 2; }
nlsandler commented 6 years ago

Thanks for filing this! I've deleted split_le.c

stevejb71 commented 6 years ago

Welcome. By the way, the compiler blog is excellent.