Parser Generator?

Tommy Nordgren tommy.nordgren at
Sun Aug 19 04:10:20 CEST 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.
> --  
	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)  
	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

More information about the Python-list mailing list