Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » JavaCC with IMP(Creating JavaCC parser and AST )
JavaCC with IMP [message #658741] Wed, 09 March 2011 16:22 Go to next message
Andy  is currently offline Andy Friend
Messages: 6
Registered: March 2011
Junior Member
Hi friend,
I want to create a new plugin project to define a new language.
So i want to use JavaCC to create his parser and generate the AST: i know that this is possibile ( by googling i learn that IMP has not problem with JavaCC) but there isn't any documentation about this issue...

Since I'm not an excellent programmer can you help me? How can I create a new project like that? Perhaps providing an example already done...

PS i would like to specify that i already have an existing parser write in JavaCC for my custom language: so i guess that i only have to import it on my IMP project but i don't know how.
Please help me Rolling Eyes

hoping that my english is good enough, Thanks in advance.
Andy.

[Updated on: Thu, 10 March 2011 21:43]

Report message to a moderator

Re: JavaCC with IMP [message #659215 is a reply to message #658741] Fri, 11 March 2011 15:11 Go to previous messageGo to next message
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
Messages: 294
Registered: July 2009
Senior Member
On 3/9/11 11:22 AM, andrea.mordenti@alice.it wrote:
> Hi friend,
> I want to create a new plugin project to define a new language.
> So i want to use JavaCC to create his parser and generate the AST: i know that this is possibile ( by googling i learn
> that IMP has not problem with JavaCC) but there isn't any documentation about this issue...
> Since I'm not an excellent programmer can you help me? How can I create a new project like that? Perhaps providing an
> example already done...
>
> hoping that my english is good enough, Thanks in advance.

Hi!

Yes, I can post a plugin or two that are the results of my experiment w/ JavaCC in a few
days. [I just came down with the flu, so I don't think I'll get to it before then.]

[Before this attempt, I hadn't even tried using JavaCC in a very long time. I had heard of
someone using JavaCC with IMP at a previous EclipseCon. Unfortunately, I don't remember who
that was.]

--
Cheers,
-- Bob

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

IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
X10: Productive High-Performance Parallel Programming (http://x10.sf.net)
Re: JavaCC with IMP [message #659228 is a reply to message #659215] Fri, 11 March 2011 15:38 Go to previous messageGo to next message
Andy  is currently offline Andy Friend
Messages: 6
Registered: March 2011
Junior Member
Thank you very much Bob,
if you post a plugin example with the integration of IMP and a JavaCC parser i shall be very grateful to you.

Thank you a lot again, see you soon.
Andy.
Re: JavaCC with IMP [message #756120 is a reply to message #659228] Fri, 11 November 2011 04:57 Go to previous messageGo to next message
Andreas  is currently offline Andreas Friend
Messages: 2
Registered: November 2011
Junior Member
Hi,

I have the same problem with IMP and JavaCC. Are these examples available?

Thanks a lot.

Andrew
Re: JavaCC with IMP [message #756133 is a reply to message #756120] Fri, 11 November 2011 07:28 Go to previous messageGo to next message
Andy  is currently offline Andy Friend
Messages: 6
Registered: March 2011
Junior Member
Mmmm no Sad I have give up the integration IMP/JavaCC....
But I realized the plugin anyway Smile plugin on Eclipse for Prolog language.

Andy
Re: JavaCC with IMP [message #756154 is a reply to message #756133] Fri, 11 November 2011 09:52 Go to previous messageGo to next message
Andreas  is currently offline Andreas Friend
Messages: 2
Registered: November 2011
Junior Member
So, may be I have to give up this integration too.
I am trying to grasp the plugin idea too. Any tips? or help?

Andrew
Re: JavaCC with IMP [message #756257 is a reply to message #756154] Fri, 11 November 2011 17:04 Go to previous message
Andy  is currently offline Andy Friend
Messages: 6
Registered: March 2011
Junior Member
I want give you two advices: the former is, don't give up Smile the latter is, try to use XText.
XText is very simple to use if you want to develop a plugin or a new language, also it's well-documented.

See you soon Wink

Andy
Previous Topic:Unicode Rendering in .g and .gi files
Next Topic:How to control the ParseController / how much should I do in ParseController.parse()?
Goto Forum:
  


Current Time: Thu Mar 28 15:20:45 GMT 2024

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

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

Back to the top