[antlr-interest] ANTLR lexer for Python?

Terence Parr parrt at cs.usfca.edu
Sat Sep 11 11:37:28 PDT 2004


Howdy...you can look at the python grammar I did...should be in the 
grammar section of the site. :)

Ter

On Sep 11, 2004, at 11:15 AM, mhahndeqo wrote:

> I'm trying to implement a lexer for Python's indentation scheme and
> I'm beginning to believe it's impossible. I need to detect
> indentation levels and emit indent and dedent tokens.  ANTLR seems to
> have no way for me to tell line position.
>
> Has anyone done anything like this?  Anyone got any ideas?
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list