www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Any parser generators for D that are not abandoned?

reply Trass3r <mrmocool gmx.de> writes:
Found the GOLD parser generator which seems to be quite nice:
http://www.devincook.com/goldparser/index.htm

Has anyone tried that yet?

Unfortunately it was last updated in 2007, any alternatives?

I know h3r3tic maintains an Enki fork but its grammar is rather complicated.
Jun 02 2009
next sibling parent reply BCS <ao pathlink.com> writes:
Reply to Trass3r,

 Found the GOLD parser generator which seems to be quite nice:
 http://www.devincook.com/goldparser/index.htm
 
 Has anyone tried that yet?
 
 Unfortunately it was last updated in 2007, any alternatives?
 
 I know h3r3tic maintains an Enki fork but its grammar is rather
 complicated.
 

dparse? http://www.dsource.org/projects/scrapple/browser/trunk/dparser It's not that the top of my queue right now, but I might get back to it by the time your compile finishes. <g>
Jun 02 2009
parent reply Ary Borenszweig <ary esperanto.org.ar> writes:
BCS wrote:
 Reply to Trass3r,
 
 Found the GOLD parser generator which seems to be quite nice:
 http://www.devincook.com/goldparser/index.htm

 Has anyone tried that yet?

 Unfortunately it was last updated in 2007, any alternatives?

 I know h3r3tic maintains an Enki fork but its grammar is rather
 complicated.

dparse? http://www.dsource.org/projects/scrapple/browser/trunk/dparser It's not that the top of my queue right now, but I might get back to it by the time your compile finishes. <g>

There's an "private import glue.templates;" in dparse.d. Where's that module? I can't see it there, neither in scrapple.
Jun 02 2009
parent BCS <none anon.com> writes:
Hello Ary,

 BCS wrote:
 
 Reply to Trass3r,
 
 Found the GOLD parser generator which seems to be quite nice:
 http://www.devincook.com/goldparser/index.htm
 
 Has anyone tried that yet?
 
 Unfortunately it was last updated in 2007, any alternatives?
 
 I know h3r3tic maintains an Enki fork but its grammar is rather
 complicated.
 

http://www.dsource.org/projects/scrapple/browser/trunk/dparser It's not that the top of my queue right now, but I might get back to it by the time your compile finishes. <g>

module? I can't see it there, neither in scrapple.

Comment it out and if that doesn't compile I'll dig it up. I known where to look for it, but it will take a bit to find it.
Jun 02 2009
prev sibling parent reply "Nick Sabalausky" <a a.a> writes:
"Trass3r" <mrmocool gmx.de> wrote in message 
news:h043vv$2sv5$1 digitalmars.com...
 Found the GOLD parser generator which seems to be quite nice:
 http://www.devincook.com/goldparser/index.htm

 Has anyone tried that yet?

 Unfortunately it was last updated in 2007, any alternatives?

 I know h3r3tic maintains an Enki fork but its grammar is rather 
 complicated.

I'm a little unclear on what exactly you're looking for: Gold doesn't really need much in the way of updates, it's already very solid. I use it. And although it was looking like Devin had dissapeared for a while, he's recently showed up again on the mailing list. But if you're talking about a Gold engine written in D (ie, something written in D that takes in a source file and parses it according to a provided .cgt), the "stc" side project I've been working on contains an up-to-date one for D1/Tango (in fact, that's mostly all stc is so far). I haven't done any formal release, but you can grab the latest version I've pulled together here (sorry, the svn for it isn't set up publically ATM): http://www.semitwist.com/download/stc_v0.004.7z (There's also a .zip of it in the same place if you prefer that.) Documentation, source, tools, and Win32 binaries are included. If you're talking about a D grammar for Gold, you're probably on your own, I'm not aware of one.
Jun 02 2009
parent Trass3r <mrmocool gmx.de> writes:
Nick Sabalausky schrieb:
 Gold doesn't really need much in the way of updates, it's already very 
 solid. I use it. And although it was looking like Devin had dissapeared for 
 a while, he's recently showed up again on the mailing list.
 

myself with a framework that has no future ;)
 But if you're talking about a Gold engine written in D (ie, something 
 written in D that takes in a source file and parses it according to a 
 provided .cgt), the "stc" side project I've been working on contains an 
 up-to-date one for D1/Tango (in fact, that's mostly all stc is so far). I 
 haven't done any formal release, but you can grab the latest version I've 
 pulled together here (sorry, the svn for it isn't set up publically ATM):
 http://www.semitwist.com/download/stc_v0.004.7z

and if it still works. I haven't tested it either since I'm currently playing with Gold's grammar syntax which seems quite neat.
Jun 03 2009