Project proposal: Antlr parser for javac
Frank Wierzbicki
fwierzbicki at gmail.com
Fri Jun 13 19:56:40 UTC 2008
On Fri, Jun 13, 2008 at 3:48 PM, Terence Parr <parrt at cs.usfca.edu> wrote:
> Hi Frank,
>
> Ah! Cool. Are you using the python grammar from the ANTLR 3.1 examples?
> Parser is not bad, but the lexer is a mess; well, I suppose python makes it
> hard ;) Gotta insert lots of imaginary DEDENT tokens.
I started with the example Python grammar from 3.0 -- I haven't looked
at the 3.1 one yet. I contributed a couple of lexer fixes a few
months ago for that one -- I found one more lexer issue since then,
but it seems to work pretty well as it is because I have successfully
parsed pretty much all of the CPython 2.5 Lib with it. I do use the
PythonTokenSource to insert imaginary DEDENTs. So far I haven't found
a need to modify it.
-Frank
More information about the discuss
mailing list