tsoding / porth

It's like Forth but in Python
628 stars 50 forks source link

add support to multi line string #43

Closed drocha87 closed 2 years ago

drocha87 commented 2 years ago

This commit changed how the lexer behaves. Now in the first step of the lexer lex_file we just consumes the lines of the file and send it directly to lex_lines. I introduced a new main loop inside the lex_lines so we can walk line by line. I checked that the error reporting seems to be working fine.

rexim commented 2 years ago

@drocha87 looks goode to me! :+1: Thank you for your contribution!