[antlr-interest] Python 2.3.3 grammar posted

Kaleb Pederson kibab at icehouse.net
Sun Feb 29 15:55:30 PST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 29 February 2004 12:39 pm, Terence Parr wrote:
> On Feb 28, 2004, at 9:40 PM, Kaleb Pederson wrote:
> > Ok. I ran it on about 50-100k of Python that a partner and I wrote on a
> > commercial project.  The following is the only thing that cropped up:
> >
> > - ------
> > $ cat test.py
> > #!/usr/bin/python
> > # -*- coding: utf-8 -*-
> > # see http://www.python.org/peps/pep-0263.html
> > test = "Gabrielle Carré"
> > print test
>
> I was afraid of that encoding stuff.  Think I should just turn on
> unicode range for all chars and ignore the encoding?

Hehe... That was my thought too, and I'm not even the one doing the parsing ;)  
I think that's perfectly acceptable.  As long as the encoding string gets 
picked up, you can let whoever is doing the semantic analysis deal with 
whether or not the encoding used matches the string.

> I can perhaps look at the others later...they seem easy to fix (after
> the nightmare known as "lexing Python") :) ;)

Hehe.... I didn't even check to see if they were valid.  Although I would 
presume so as they are part of the base Python 2.3 install.

- --Kaleb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAQnvyeAVt8Tl/2kURAlOeAJ9C5at4cVXnjTFTh6ozckML94ES3ACgroxc
uidTxtdl50T9iiLqN/qaG2A=
=Y04i
-----END PGP SIGNATURE-----


 
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