Making a Python interpreter in 1024 bytes
austinhenley.com
Making a Python interpreter in 1024 bytes
1–10 of 120 posts
Re: Making a Python interpreter in 1024 bytes
#2As implementer of an interpreter, did you feel that whitespace for lexical scoping made the job of writing the lexer significantly more complex?
Re: Making a Python interpreter in 1024 bytes
#3A lot of criticism of python often mentions the whitespace as lexical scope tokens, and that criticism is usually posited by users of the language. As implementer of an interpreter, did you feel that whitespace for lexical scoping made the job of writing the lexer significantly more complex?
is different than
So you also have to track the actual sequence of counts of white space used for each level, rather than just a simple count.
Re: Making a Python interpreter in 1024 bytes
#4Re: Making a Python interpreter in 1024 bytes
#5Re: Making a Python interpreter in 1024 bytes
#6A lot of criticism of python often mentions the whitespace as lexical scope tokens, and that criticism is usually posited by users of the language. As implementer of an interpreter, did you feel that whitespace for lexical scoping made the job of writing the lexer significantly more complex?
And, there are multiple white space symbols! is different than So you also have to track the actual sequence of counts of white space used for each level, rather than just a simple count.
Re: Making a Python interpreter in 1024 bytes
#7Re: Making a Python interpreter in 1024 bytes
#8This is not Python, or even within three orders of magnitude of Python.
Re: Making a Python interpreter in 1024 bytes
#9A lot of criticism of python often mentions the whitespace as lexical scope tokens, and that criticism is usually posited by users of the language. As implementer of an interpreter, did you feel that whitespace for lexical scoping made the job of writing the lexer significantly more complex?
And, there are multiple white space symbols! is different than So you also have to track the actual sequence of counts of white space used for each level, rather than just a simple count.
in my view, both are the same, both `is` (or ===) an IndentationError raise