[antlr-interest] Fwd: A couple of questions for lexing strategy.

Darien Hager darien.hager at etelos-inc.com
Mon Mar 3 10:34:07 PST 2008


I'll let the knowledgable folks deal with most of that (how gracious of me
:P ) but...

On 2/29/08, ANTLR Mailing List <jstpierre-antlr at mecheye.net> wrote:
>
>
>   Also, can ANTLR extract the token list in the lexer into it's own
>   class? When using the parser rule grammar shown above, the list is
>   generated twice, once in each class. It seems that putting the tokens
>   in its own file would be much cleaner.


At least when using ANTLRworks a file called grammarname.tokens is created
with each line containing a token-text to ID mapping. This file is AFAIK
only for your convenience, nothing relies on it.

Of course, the tokens attached to Parser/Lexer classes as constants
(public-static-final) can be accessed without instantiating the lexer
or parser.

  Also, I still have interest in developing the ActionScript port for
>   ANTLR, but I'm a student (read: I'm under 18). Would I still be able
>   to develop, because my signature is not legal.
>

As a non-lawyer, I don't think that's a major problem--you don't need to be
of legal age to begin making a runtime port or other software project... you
just have to be of a legal age or have help before you make any contractual
agreement stuff. (You know, like licensing your work or something.)

-- 
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/20080303/fa58082a/attachment-0001.html 


More information about the antlr-interest mailing list