[antlr-interest] Parsing the Keywords/Identifiers
srinivasan.subramanian at tcs.com
srinivasan.subramanian at tcs.com
Tue Oct 18 06:09:29 PDT 2005
Hi everyone,
I am part of a Language Processing project and i am
relatively new to ANTLR. One of the problems that i often encounter is the
keywords. Whenever we encounter we encounter an identifier, we check it
against a keyword list and return the keyword token if it is a keyword or
an IDENTIFIER token if it is not. There can be situations where a keyword
can come as an identifier. For example when writing a pl/sql parser,
PASSWORD is a keyword and it can come as a column name too. Is there a way
around for this? Hope i am clear in explaining the problem.
Could anyone please help me out on this?
Thanks,
Srinivasan Subramanian
Assistant Systems Engineer -Trainee
Tata Consultancy Services Limited
Mailto: srinivasan.subramanian at tcs.com
Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20051018/680a6da1/attachment.html
More information about the antlr-interest
mailing list