porting to Java

141 views
Skip to first unread message

ComposersNotebook

unread,
Oct 13, 2011, 11:09:19 PM10/13/11
to Treetop Development
Treetop is such a wonderful library, it easily outshines all other
parsers by miles for most uses. I only wish it could see a wider
audience... I'd love to see a port to Java for instance.

Does anyone know of anything similar in Java, or has anyone given
thought to porting something like Treetop to Java (or Scala perhaps)?

Shinji KOBAYASHI

unread,
Oct 13, 2011, 11:20:23 PM10/13/11
to treet...@googlegroups.com
For Java, PEG parsing engines(like Treetop) are,
Rats!(part of xtc) http://www.cs.nyu.edu/rgrimm/xtc/rats.html
perboiled(Java and Scala)
https://github.com/sirthias/parboiled/wiki/the-big-picture
Mouse http://mousepeg.sourceforge.net/

2011/10/14 ComposersNotebook <ari...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "Treetop Development" group.
> To post to this group, send email to treet...@googlegroups.com.
> To unsubscribe from this group, send email to treetop-dev...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/treetop-dev?hl=en.
>
>

Shinji KOBAYASHI

unread,
Oct 13, 2011, 11:22:37 PM10/13/11
to treet...@googlegroups.com
This page has additional information about PEG/Packrat parser engine.
http://bford.info/packrat/

2011/10/14 ComposersNotebook <ari...@gmail.com>:

Clifford Heath

unread,
Oct 13, 2011, 11:37:00 PM10/13/11
to treet...@googlegroups.com
On 14/10/2011, at 2:09 PM, ComposersNotebook wrote:
> Treetop is such a wonderful library, it easily outshines all other
> parsers by miles for most uses. I only wish it could see a wider
> audience... I'd love to see a port to Java for instance.
>
> … has anyone given

> thought to porting something like Treetop to Java (or Scala perhaps)?

At one time, I thought to switch Treetop's code-generation DSL to a
template-based approach so that templates for other languages could
be written. It doesn't seem likely I'll find time for this, but if someone
else wants to try it I'll stand by to help, laugh, point, etc. It shouldn't
be too hard.

Clifford Heath.

Albert Chou

unread,
Oct 15, 2011, 11:50:22 AM10/15/11
to treet...@googlegroups.com
I just came across this cross-language PEG parser framework:  http://pegex.org/

Al


--
You received this message because you are subscribed to the Google Groups "Treetop Development" group.
To post to this group, send email to treet...@googlegroups.com.
To unsubscribe from this group, send email to treetop-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/treetop-dev?hl=en.




--
Finding a solution to a problem requires different thinking from that which created the problem. - paraphrasing Albert Einstein

Albert Chou

unread,
Oct 15, 2011, 9:14:22 PM10/15/11
to treet...@googlegroups.com
Clifford says the following message disappeared before he could approve it from the moderator's area and that I should re-send it.

Al

---------- Forwarded message ----------
From: Albert Chou <hotfus...@gmail.com>
Date: Sat, Oct 15, 2011 at 8:50 AM
Subject: Re: porting to Java
To: treet...@googlegroups.com


I just came across this cross-language PEG parser framework:  http://pegex.org/

Al


On Thu, Oct 13, 2011 at 8:37 PM, Clifford Heath <cliffor...@gmail.com> wrote:
On 14/10/2011, at 2:09 PM, ComposersNotebook wrote:
> Treetop is such a wonderful library, it easily outshines all other
> parsers by miles for most uses.  I only wish it could see a wider
> audience... I'd love to see a port to Java for instance.
>
> … has anyone given
> thought to porting something like Treetop to Java (or Scala perhaps)?

At one time, I thought to switch Treetop's code-generation DSL to a
template-based approach so that templates for other languages could
be written. It doesn't seem likely I'll find time for this, but if someone
else wants to try it I'll stand by to help, laugh, point, etc. It shouldn't
be too hard.

Clifford Heath.

--

Clifford Heath

unread,
Oct 15, 2011, 9:20:54 PM10/15/11
to treet...@googlegroups.com
Apparently someone else had approved it, because it actually did come through - but after I had checked.
I guess that means someone else approved it… there's a first time for everything :)
Welcome, co-moderator, whoever you are.

Reply all
Reply to author
Forward
0 new messages