Parser Generator?

Tommy Nordgren tommy.nordgren at comhem.se
Sat Aug 18 22:10:20 EDT 2007


On 19 aug 2007, at 00.22, Jack wrote:

> Hi all, I need to do syntax parsing of simple naturual languages,
> for example, "weather of London" or "what is the time", simple
> things like these, with Unicode support in the syntax.
>
> In Java, there are JavaCC, Antlr, etc. I wonder what people use
> in Python? Antlr also has Python support but I'm not sure how good
> it is. Comments/hints are welcome.
>
>
> --  
> http://mail.python.org/mailman/listinfo/python-list
	Antlr can generate Python code.
However, I don't think a parser generator is suitable for generating  
natural language parsers.
They are intended to generate code for computer language parsers.
	However, for examples on parsing imperative English sentences, I  
suggest taking a look
at the class library for TADS 3 (Text Adventure Development System)  
<http://www.tads.org>
	The lanuge has a syntax reminding of c++ and Java.
-----------------------------------------------------
An astronomer to a colleague:
-I can't understsnad how you can go to the brothel as often as you  
do. Not only is it a filthy habit, but it must cost a lot of money too.
-Thats no problem. I've got a big government grant for the study of  
black holes.
Tommy Nordgren
tommy.nordgren at comhem.se






More information about the Python-list mailing list