Another parser than ANTLR
Rémi Forax
forax at univ-mlv.fr
Mon Oct 13 23:49:14 PDT 2008
Yang Jiang a écrit :
> Hi Remi,
>
> Sorry for the late reply.
No problem.
>
> That seems an interesting parser generator. Is it public accessible?
Yes, the source is hosted on a forge at my lab:
http://gforgeigm.univ-mlv.fr/projects/tatoo/
The latest release is pretty old, the current plan is to release version 4
(the next one) in november.
So if you want to use it, I think it's better to use the latest source
from the repository.
The source respository (SVN) is accessible here:
http://gforgeigm.univ-mlv.fr/scm/viewvc.php/trunk/?root=tatoo
You just need ant to build the project.
To start, the best is to take a look to the sample named calc-ast (in
samples/calc-ast).
> And to answer your question: no, the compiler grammar is not open to
> other implementations. It's build specifically for Antlr.
> But, you can do your work in the langtools workspace, which has been
> changed recently so that it is possible
> to integrate other parsers into it. Just look at the
> /com.sun.tools.javac.parser.Parser/. That's the interface you have to
> implement for your own parser.
>
> But the langtool workspace is still not friendly enough, there is
> still more work you have to do yourself, like adding your own option so
> when you run javac it's your parser actually do the job.
>
> You can check out the compiler grammar workspace to see how it's done.
Ok, I will surely propose to use Tatoo as front end to the java compiler
as a summer project.
>
> Yang
>
Rémi
More information about the compiler-grammar-dev
mailing list