Miki Tebeka <[EMAIL PROTECTED]> writes:

> Hello jozo,
>
>> I have to work on python lexical definition in Lex. I spent lots of my
>> time to find regular expresions written for Lex of Python language but
>> nothing.
>> Can somebody help me?
> http://www.antlr.org/grammar/list (search for Python)
>
> You can search in projects like Pyrex and Parrot for their parser
> implementation.

The python grammar is included with the Python sources, and is used
to build the compiler.

> HTH.

Trouble is, he wants a lexer, not a parser. The lexer in the sources
is an ad-hoc package, contained in Parser/tokenizer.c.

   <mike
-- 
Mike Meyer <[EMAIL PROTECTED]>                  http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to