[antlr-interest] java.lang.NullPointerException

Darien Hager darien.hager at etelos-inc.com
Fri Mar 14 10:10:38 PDT 2008


On 3/14/08, Richard Clark <rdclark at gmail.com> wrote:
>
> UP and DOWN are pre-defined token types for use with Abstract Syntax
> Trees.
>
>
>   ...Richard
>

This seems like a ripe place for throwing a "that token is reserved" error.
(Ditto for EOF.)

There may be some other reserved names depending on the runtime you use. For
example, the Java runtime writes tokens as public static final properties,
so tokens can't be anything that conflicts with a reserved java keyword.
(Fortunately, the fact that they have to start with an uppercase letter
tends to help here.)

-- 
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/20080314/e0781fa0/attachment.html 


More information about the antlr-interest mailing list