Thursday, March 08, 2007

Time for a SAFARI?

I was pretty impressed by the SAFARI presentation by Bob Fuhrer from IBM Research. They have a lot of tooling that generates most of the cool features you get with an Eclipse language IDE, for any language that you specify. There are lots of wizards that generate Java plug-in code and most of it finds information based on a grammar you provide. A lot of it is pretty simplistic, but enough to get you going. At the very least, the generated code can serve as a great head start.

The good news is that they are close to bringing it to Eclipse for others to use. Of course we're building a multi-language framework with the CDT. So we'll have to figure out where we can leverage some of the cool things they have and where they can leverage some of the cool things we have. But this will be a great tool to help those poor souls who ask us how to build an IDE like the CDT for their own language.

4 comments:

  1. I thought you were all anti bottom up parsing?

    ReplyDelete
  2. Uh, no... I am a huge fan of ANTLR and am pursuing IP approval for using it for Eclipse projects.

    ReplyDelete
  3. But ANTLR is a top-down parser generator. LPG, the parser generator that SAFARI uses, is bottom-up. You have stated several times on the dev list that you don't like bottom-up parsing and that its not appropriate for parsing C-like languages. How do you feel about the fact that SAFARI uses LPG? Do you see LPG as a barrier to the CDT community leveraging SAFARI?

    ReplyDelete
  4. For tough langauges like C++, yes, I do think it will be a barrier. That's why, with the CDT, we will need to support multiple parsing technologies. I will work with the SAFARI team to make sure their stuff does as well. The good news is that Robert Fuhrer is in favour of that as well, with community help, of course :)

    ReplyDelete