ThePrimeagen / ts-rust-zig-deez

605 stars 160 forks source link

Start Lexer in Monkey lang #245

Closed wartab closed 1 year ago

wartab commented 1 year ago

Not sure how to make it test things yet with Docker, etc., but this all works so far!

This assumes that the book has been followed entirely plus the following implementation details on top of what the book says (otherwise it's just impossible):

Probably more to come.

Loops were implemented recursively and will probably cause stack overflows for larger input strings. But some tricks could be applied by unrolling them.