Skip to main content



      Home
Home » Modeling » TMF (Xtext) » support of packrat parser generator
support of packrat parser generator [message #21442] Fri, 29 August 2008 05:06 Go to next message
Eclipse UserFriend
Hello all. To begin, two warnings

1.- My english is not good but i hope it will be good enough
2.- I'm new in this forum, also in eclipse forums. I'll take care but is
possible to make a mistake. Please, be patient and help me to be a better
poster

Now, the question:

I'm using a parser generator called rats. Is a packrat parser based on
peg's
(parsing expression grammars). I'd like to know if it would be possible to
use rats instead ANTLR or LPG with TMF. Note that peg's does not requiere
a separate tokenization
step and cannot express left-recursive rules.

I suppose is posible you will need more information to answer this
question. If this is the case, you'll have the information soon if you ask
me for it

Thanks in advance
Re: support of packrat parser generator [message #21454 is a reply to message #21442] Tue, 02 September 2008 03:51 Go to previous message
Eclipse UserFriend
Originally posted by: sven.efftinge.de

Hi Santiago,

> 1.- My english is not good but i hope it will be good enough

no problem, mine neither :-)

> 2.- I'm new in this forum, also in eclipse forums. I'll take care but is
> possible to make a mistake. Please, be patient and help me to be a
> better poster

Besides these unneccessary excuses everything is perfect ;-)

> I'm using a parser generator called rats. Is a packrat parser based on
> peg's (parsing expression grammars). I'd like to know if it would be
> possible to use rats instead ANTLR or LPG with TMF. Note that peg's does
> not requiere a separate tokenization step and cannot express
> left-recursive rules.

In TMF there are currently two different implementations (Xtext and
TCS), both are based on Antlr 3. With Xtext it is not possible to use
another parser generator and AFAIK it's also not possible to do so with
TCS (Frederic, please correct me if this is not true).

I'ld recommend to have a look at IMP, which is not that powerful but far
more flexible. They support exchange of the parser generator.

regards,
Sven
Previous Topic:Re: [xtext] Error in the generated PartitionScanner
Next Topic:[TCS] Stable release
Goto Forum:
  


Current Time: Fri Apr 25 19:35:47 EDT 2025

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

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

Back to the top