Forum: Ruby Dhaka 2.2.0

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
74886c14aa167f34d39145d75c0b971c?d=identicon&s=25 Mushfeq Khan (Guest)
on 2007-05-30 04:11
(Received via mailing list)
This release features a significant speed optimization in the parser
generation algorithm. Very roughly speaking, it should now be at least
as fast. My thanks to Emmanuel Oga for pressing me to look at that
of the code again. Incidentally, Emmanuel reported a 7X speed-up in the
required to generate his parser.

The regular expression library now supports the lookahead ("/") operator
(and it's still a DFA!). This turned out to be much more work than I had
anticipated, but you can do very cool things with it.

Bruce Williams and Florian Gross made several excellent suggestions,
some of
which have made their way into this release. Others are still being
on. ;)


* Parsers are generated much faster.
* LexerSpecification#for_symbol method handles escaping automatically on
metacharacters (thanks to Florian Gross for suggesting this).
* LexerSpecification#for_pattern accepts Ruby regular expression
literals in
addition to strings (thanks to Bruce Williams and Florian Gross for
suggesting this).
* Lookahead operator supported in the regular expression grammar.
* Carriage returns supported in the regular expression grammar.
* Evaluator no longer throws exceptions for undefined rules unless the
:raise_error option is set to true.

This topic is locked and can not be replied to.