Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » BNF input
BNF input [message #19399] Wed, 21 May 2008 19:47 Go to next message
Eclipse UserFriend
Originally posted by: martin.fender.removethis.oxi.de

Hi,

I want to create a IDE using IMP. I have the BNF declaration the used
programming language.
How can I use this as input to LPG ?

BR

M
Re: BNF input [message #19583 is a reply to message #19399] Sun, 25 May 2008 02:42 Go to previous messageGo to next message
Jin Missing name is currently offline Jin Missing nameFriend
Messages: 100
Registered: July 2009
Senior Member
LPG has it's own grammer defination file, the $Rules section is based BNF
basically. But, in most cases, you maybe need to add more generator control
options to it. you can see more LPG examples and documents in it's sf
website.

"Martin F" <martin.fender@removethis.oxi.de> д
Re: BNF input [message #19883 is a reply to message #19583] Wed, 28 May 2008 14:50 Go to previous messageGo to next message
Stan Sutton is currently offline Stan SuttonFriend
Messages: 121
Registered: July 2009
Senior Member
Yes. The SourceForge web site for LPG is
http://sourceforge.net/projects/lpg/.

There is a Quick Start guide for the use of LPG in IMP on the IMP
documentation page, although this won't have much information relating
specifically to grammar specifications.

We have used LPG to specify grammars for several DSLs, with their own
IMP IDEs, that are part of IMP. These IDEs and the LPG grammar files
for the DSLs are included in the IMP source code that you can check out
from the IMP SVN repository (see the main IMP web page on Eclipse.org
for links).

Three of the IMP projects that contain IDEs and LPG grammar
specifications are:

- org.eclipse.imp.box
(for the Box text formatting language)

- org.eclipse.imp.lpg.runtime
(for the LPG grammar-specification language itself)

- org.eclipse.imp.prefspecs
(for the PrefSpecs preferences specification language)

There are also some others (some of which are still under development).
If you have the IMP source code you can find the grammar files by
searching your workspace for *.g files.

Regards,

Stan Sutton

Jin wrote:
> LPG has it's own grammer defination file, the $Rules section is based BNF
> basically. But, in most cases, you maybe need to add more generator control
> options to it. you can see more LPG examples and documents in it's sf
> website.
>
> "Martin F" <martin.fender@removethis.oxi.de> дÈëÏûÏ¢ÐÂÎÅ:g11u8g$hhp$1@build.eclipse.org...
>> Hi,
>>
>> I want to create a IDE using IMP. I have the BNF declaration the used
>> programming language.
>> How can I use this as input to LPG ?
>>
>> BR
>>
>> M
>>
>>
>>
>
>
Re: BNF input [message #20018 is a reply to message #19883] Wed, 28 May 2008 15:54 Go to previous message
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
Messages: 294
Registered: July 2009
Senior Member
> Jin wrote:
>> LPG has it's own grammer defination file, the $Rules section is based
>> BNF basically. But, in most cases, you maybe need to add more
>> generator control options to it. you can see more LPG examples and
>> documents in it's sf website.
>>
>> "Martin F" <martin.fender@removethis.oxi.de>
>> дÈëÏûÏ¢ÐÂÎÅ:g11u8g$hhp$1@build.eclipse.org...
>>> Hi,
>>>
>>> I want to create a IDE using IMP. I have the BNF declaration the used
>>> programming language.
>>> How can I use this as input to LPG ?

BTW, we would definitely recommend using the IMP wizards to create the
grammar skeleton, since they take care of setting up various options on
the grammar file to get things working properly. Once you have that, you
can rip out the rules from the example grammar and replace them with your
own.

--
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: BNF input [message #570525 is a reply to message #19399] Sun, 25 May 2008 02:42 Go to previous message
Jin Missing name is currently offline Jin Missing nameFriend
Messages: 100
Registered: July 2009
Senior Member
LPG has it's own grammer defination file, the $Rules section is based BNF
basically. But, in most cases, you maybe need to add more generator control
options to it. you can see more LPG examples and documents in it's sf
website.

"Martin F" <martin.fender@removethis.oxi.de> д
Re: BNF input [message #570692 is a reply to message #19583] Wed, 28 May 2008 14:50 Go to previous message
Stan Sutton is currently offline Stan SuttonFriend
Messages: 121
Registered: July 2009
Senior Member
Yes. The SourceForge web site for LPG is
http://sourceforge.net/projects/lpg/

There is a Quick Start guide for the use of LPG in IMP on the IMP
documentation page, although this won't have much information relating
specifically to grammar specifications.

We have used LPG to specify grammars for several DSLs, with their own
IMP IDEs, that are part of IMP. These IDEs and the LPG grammar files
for the DSLs are included in the IMP source code that you can check out
from the IMP SVN repository (see the main IMP web page on Eclipse.org
for links).

Three of the IMP projects that contain IDEs and LPG grammar
specifications are:

- org.eclipse.imp.box
(for the Box text formatting language)

- org.eclipse.imp.lpg.runtime
(for the LPG grammar-specification language itself)

- org.eclipse.imp.prefspecs
(for the PrefSpecs preferences specification language)

There are also some others (some of which are still under development).
If you have the IMP source code you can find the grammar files by
searching your workspace for *.g files.

Regards,

Stan Sutton

Jin wrote:
> LPG has it's own grammer defination file, the $Rules section is based BNF
> basically. But, in most cases, you maybe need to add more generator control
> options to it. you can see more LPG examples and documents in it's sf
> website.
>
> "Martin F" <martin.fender@removethis.oxi.de> дÈëÏûÏ¢ÐÂÎÅ:g11u8g$hhp$1@build.eclipse.org...
>> Hi,
>>
>> I want to create a IDE using IMP. I have the BNF declaration the used
>> programming language.
>> How can I use this as input to LPG ?
>>
>> BR
>>
>> M
>>
>>
>>
>
>
Re: BNF input [message #570773 is a reply to message #19883] Wed, 28 May 2008 15:54 Go to previous message
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
Messages: 294
Registered: July 2009
Senior Member
> Jin wrote:
>> LPG has it's own grammer defination file, the $Rules section is based
>> BNF basically. But, in most cases, you maybe need to add more
>> generator control options to it. you can see more LPG examples and
>> documents in it's sf website.
>>
>> "Martin F" <martin.fender@removethis.oxi.de>
>> дÈëÏûÏ¢ÐÂÎÅ:g11u8g$hhp$1@build.eclipse.org...
>>> Hi,
>>>
>>> I want to create a IDE using IMP. I have the BNF declaration the used
>>> programming language.
>>> How can I use this as input to LPG ?

BTW, we would definitely recommend using the IMP wizards to create the
grammar skeleton, since they take care of setting up various options on
the grammar file to get things working properly. Once you have that, you
can rip out the rules from the example grammar and replace them with your
own.

--
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:New IMP User's Guide
Next Topic:Eclipse 3.3.0 report
Goto Forum:
  


Current Time: Fri Apr 26 13:29:33 GMT 2024

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

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

Back to the top