Another parser than ANTLR
forax at univ-mlv.fr
Mon Oct 13 23:49:14 PDT 2008
Yang Jiang a écrit :
> Hi Remi,
> Sorry for the late reply.
> That seems an interesting parser generator. Is it public accessible?
Yes, the source is hosted on a forge at my lab:
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:
You just need ant to build the project.
To start, the best is to take a look to the sample named calc-ast (in
> 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.
More information about the compiler-grammar-dev