diff options
author | Tom Collins <tom.collins@digi.com> | 2017-05-04 16:31:08 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-05-09 14:43:23 +1000 |
commit | 2998647c4e2c765cba72e390d467e4ba9dcf3262 (patch) | |
tree | d611da509d6bc03d8a14fef7ab73372eaa81a9db /unix/main.c | |
parent | e711e2d44a24024fcd7d7f5b39f285f979b66a77 (diff) | |
download | micropython-2998647c4e2c765cba72e390d467e4ba9dcf3262.tar.gz micropython-2998647c4e2c765cba72e390d467e4ba9dcf3262.zip |
py/lexer: Simplify lexer startup by using dummy bytes and next_char().
Now consistently uses the EOL processing ("\r" and "\r\n" convert to "\n")
and EOF processing (ensure "\n" before EOF) provided by next_char().
In particular the lexer can now correctly handle input that starts with CR.
Diffstat (limited to 'unix/main.c')
0 files changed, 0 insertions, 0 deletions