[antlr-interest] "An Introduction to ANTLR" presentation slides
Darien Hager
darien.hager at etelos-inc.com
Wed Feb 27 12:14:12 PST 2008
Saw this in the slides:
// Slide example
data: (b+=BYTE) {$b.size() <= 4}?;
// This is wrong, but is what is implied from regex experience with +*?
modifiers.
data: BYTE{0,4}; // 0 to 4 BYTE tokens
The slide example is valid v3 code, correct? Is there a clearer way to
match tokens or other rules an arbitrarily-ranged number of times?
--
Darien Hager
Developer
Etelos, Inc.
darien at etelos.com
http://www.etelos.com
"Revolutionizing the way applications are developed, distributed and
consumed."
This e-mail message, including attachments, may contain confidential
information for the sole use of the intended recipient(s). If you are not
the intended recipient, then this is notice that any use, disclosure,
dissemination, distribution or copying is strictly prohibited. If you have
received this message in error please contact the sender by reply mail and
destroy all copies of the original message.
This e-mail message, including attachments, may contain confidential information for the sole use of the intended recipient(s). If you are not the intended recipient, then this is notice that any use, disclosure, dissemination, distribution or copying is strictly prohibited. If you have received this message in error please contact the sender by reply mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080227/90706d10/attachment.html
More information about the antlr-interest
mailing list