Permalink
Please sign in to comment.
Browse files
Lexer optimization: Return Eol_Tok at the end of the line.
We don't want to check AtEnd() on every lexer.Read() call. We rely on the fact that there are no NUL bytes in program text. When we see one, we know we're at the end of the line, and can return Eol_Tok. Also: - Removed unused function in generated Python code. - Shell functions to profile the biggest shell program.
- Loading branch information...
Showing
with
36 additions
and 48 deletions.
- +0 −12 asdl/gen_python.py
- +6 −3 benchmarks/pytrace.sh
- +1 −1 core/id_kind.py
- +8 −11 core/lexer.py
- +10 −11 core/lexer_gen.py
- +10 −0 native/fastlex.c
- +1 −1 native/fastlex_test.py
- +0 −9 osh/lex_test.py
0 comments on commit
34f0658