Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » Javacc Builder
Javacc Builder [message #16581] Tue, 19 February 2008 15:46 Go to next message
nessie is currently offline nessie
Messages: 2
Registered: July 2009
Junior Member
Hi to all.
I'm trying to write an eclipse-plugin for a new language.
I have to define a customized IDE for my language: a syntax highlighting
editor with error marks.
I need javacc like compiler.
Is there some info to use javacc with IMP?
Thank you in advance

Giuseppe
Re: Javacc Builder [message #18378 is a reply to message #16581] Tue, 08 April 2008 20:52 Go to previous messageGo to next message
Stan Sutton is currently offline Stan Sutton
Messages: 121
Registered: July 2009
Senior Member
Hi Giuseppe,

IMP will not give you much help for building the compiler itself. LPG
support associated with IMP will help you in writing a grammar and
generating a parser. (You can use LPG with or without IMP.)

IMP will help you build an IDE with a syntax highlighting editor with
error markers. It also makes it easy to get several additional features
such as source-text folding, an outline view, hover help, and others.
Most IMP IDE services are driven off of an AST representation that is
constructed by a parser. IMP can also help you to build an incremental
builder, and you can use that to invoke a compiler if you have one.

Regarding error markers, errors returned by the parser will appear as
markers in the editor. Errors returned by the compiler can be converted
by a builder into problem markers that show up in the problems view.

I hope this is helpful,

Stan Sutton


Giuseppe wrote:
> Hi to all.
> I'm trying to write an eclipse-plugin for a new language.
> I have to define a customized IDE for my language: a syntax highlighting
> editor with error marks.
> I need javacc like compiler.
> Is there some info to use javacc with IMP?
> Thank you in advance
>
> Giuseppe
Re: Javacc Builder [message #18422 is a reply to message #16581] Tue, 15 April 2008 13:33 Go to previous message
Robert M. Fuhrer is currently offline Robert M. Fuhrer
Messages: 294
Registered: July 2009
Senior Member
Giuseppe wrote:
> Hi to all.
> I'm trying to write an eclipse-plugin for a new language.
> I have to define a customized IDE for my language: a syntax highlighting
> editor with error marks.
> I need javacc like compiler.
> Is there some info to use javacc with IMP?

At the moment, there is no JavaCC IDE based on IMP, and IMP doesn't
provide any metatooling or framework support classes.

In case you're really just asking about a JavaCC IDE, a quick
googling gave this:

http://sourceforge.net/projects/eclipse-javacc

so there is some support for using JavaCC in Eclipse. In other words,
at least you'd get syntax highlighting, outlining, a builder, and so
on while working on the JavaCC grammar for your language.

--
Cheers,
-- Bob

--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center

IMP Team Lead (http://eclipse-imp.sourceforge.net)
X10: Productivity for High-Performance Parallel Programming (http://x10.sf.net)
Re: Javacc Builder [message #570078 is a reply to message #16581] Tue, 08 April 2008 20:52 Go to previous message
Stan Sutton is currently offline Stan Sutton
Messages: 121
Registered: July 2009
Senior Member
Hi Giuseppe,

IMP will not give you much help for building the compiler itself. LPG
support associated with IMP will help you in writing a grammar and
generating a parser. (You can use LPG with or without IMP.)

IMP will help you build an IDE with a syntax highlighting editor with
error markers. It also makes it easy to get several additional features
such as source-text folding, an outline view, hover help, and others.
Most IMP IDE services are driven off of an AST representation that is
constructed by a parser. IMP can also help you to build an incremental
builder, and you can use that to invoke a compiler if you have one.

Regarding error markers, errors returned by the parser will appear as
markers in the editor. Errors returned by the compiler can be converted
by a builder into problem markers that show up in the problems view.

I hope this is helpful,

Stan Sutton


Giuseppe wrote:
> Hi to all.
> I'm trying to write an eclipse-plugin for a new language.
> I have to define a customized IDE for my language: a syntax highlighting
> editor with error marks.
> I need javacc like compiler.
> Is there some info to use javacc with IMP?
> Thank you in advance
>
> Giuseppe
Re: Javacc Builder [message #570211 is a reply to message #16581] Tue, 15 April 2008 13:33 Go to previous message
Robert M. Fuhrer is currently offline Robert M. Fuhrer
Messages: 294
Registered: July 2009
Senior Member
Giuseppe wrote:
> Hi to all.
> I'm trying to write an eclipse-plugin for a new language.
> I have to define a customized IDE for my language: a syntax highlighting
> editor with error marks.
> I need javacc like compiler.
> Is there some info to use javacc with IMP?

At the moment, there is no JavaCC IDE based on IMP, and IMP doesn't
provide any metatooling or framework support classes.

In case you're really just asking about a JavaCC IDE, a quick
googling gave this:

http://sourceforge.net/projects/eclipse-javacc

so there is some support for using JavaCC in Eclipse. In other words,
at least you'd get syntax highlighting, outlining, a builder, and so
on while working on the JavaCC grammar for your language.

--
Cheers,
-- Bob

--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center

IMP Team Lead (http://eclipse-imp.sourceforge.net)
X10: Productivity for High-Performance Parallel Programming (http://x10.sf.net)
Previous Topic:Memory Exhaustion
Next Topic:Memory Exhaustion
Goto Forum:
  


Current Time: Fri Sep 19 20:01:48 GMT 2014

Powered by FUDForum. Page generated in 0.02478 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software