Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] LR parser and LPG version

On Tue, Mar 2, 2010 at 6:14 PM, Mike Kucera <mkucera@xxxxxxxxxx> wrote:

As far as I know LPG is still being actively developed, but we are using the 1.1 version which is not being maintained anymore. I haven't had the time or need to upgrade to 2.0.

Actually one of the LPG maintainers opened a bug in our system asking us to upgrade to 2.0 :)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=297860

Excellent. I hope you find the time for that :).

Xtext is a very interesting technology but its my understanding that they are focused on small domain specific languages, and they certainly don't have support for the C preprocessor.

Yeah, that was my feeling as well. But it's very similar to ANTLR and actually uses ANTLR under the covers. I imagine you could get it to do C preprocessing if you had to. But I think there are other things missing, like AST node locations, that would make it difficult to do things like open decl and refactoring. I was considering it for Makefile or qmake file parsing, but we'll see how far I get before bailing and just handwriting a parser.

What happened to safari, is it still around?

Yup, it's still around and is called IMP now, http://www.eclipse.org/imp, and there seems to be progress with it. But Xtext seems to be getting more press these days, probably because DSLs are a hot topic. Peter Friese did challenge me to make an C++ parser for Xtext, but I think he was joking :).
 
:D

Back to the top