Revision 534bfd4...
Go back to digest for 3rd March 2013Optimization in Development Tools
Miquel Sabaté committed changes in [kdev-ruby] /:
Partial re-write of the lexer.
This commit contains a partial re-write of the lexer that can be found in
the parser/parser.y file. Tests have been updated. This time the lexer is
structured in a giant switch statement, making it faster and smaller. Moreover,
this commit comes handy for future optimizations on the parser.
Note also that the support for heredocs has been removed. This is because the
current support is broken, and I plan to provide a proper implementation in
the near future.
File Changes
Modified 25 files
- parser/parser.y
- parser/tools/tests/array.txt
- parser/tools/tests/assign.txt
- parser/tools/tests/block.txt
- parser/tools/tests/case.txt
- parser/tools/tests/class.txt
- parser/tools/tests/comment.txt
- parser/tools/tests/except.txt
- parser/tools/tests/for.txt
- parser/tools/tests/function.txt
- parser/tools/tests/global.txt
- parser/tools/tests/hash.txt
- parser/tools/tests/ifelse.txt
- parser/tools/tests/method_call.txt
- parser/tools/tests/modifiers.txt
- parser/tools/tests/module.txt
- parser/tools/tests/numeric.txt
- parser/tools/tests/regexp.txt
- parser/tools/tests/ruby20.txt
- parser/tools/tests/semicolon.txt
- parser/tools/tests/simple.txt
- parser/tools/tests/string.txt
- parser/tools/tests/symbol.txt
- parser/tools/tests/utf8.txt
- parser/tools/tests/while.txt
25 files changed in total