[antlr-interest] natural-language parsing problem: How to distinguish between special words and regular words

Andy Tripp antlr at jazillian.com
Thu Jan 29 09:27:49 PST 2009


Sven Prevrhal wrote:
> I want to parse recipes. How can I distinguish (for instance) between a 
> measuring unit such as “cups” and other general words?

This is the classic "keywords as identifiers" issue.
See http://www.antlr.org/wiki/pages/viewpage.action?pageId=1741
or search for "keywords as identifiers" in the mailing list - it's
been discussed a lot.


More information about the antlr-interest mailing list