BNF input [message #19399] |
Wed, 21 May 2008 15:47  |
Eclipse User |
|
|
|
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 #20018 is a reply to message #19883] |
Wed, 28 May 2008 11:54  |
Eclipse User |
|
|
|
> 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] |
Sat, 24 May 2008 22:42  |
Eclipse User |
|
|
|
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 10:50  |
Eclipse User |
|
|
|
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 11:54  |
Eclipse User |
|
|
|
> 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)
|
|
|
Powered by
FUDForum. Page generated in 0.07365 seconds