View previous topic :: View next topic |
Author |
Message |
KlausO
Joined: 16 Feb 2006 Posts: 27 Location: Germany
|
Posted: Sun Sep 17, 2006 1:34 pm Post subject: Maturity of Enki D Parser |
|
|
Hi pragma,
I've seen you have added a D parser to the Enki parser library. Can you say something about the maturity of the parser ?
And what are your future plans with the XML/XPATH parser ? Are they only a proof of concept or are you planning the next generation XSLT trafo ?
Greets
Klaus |
|
Back to top |
|
|
pragma
Joined: 28 May 2004 Posts: 607 Location: Washington, DC
|
Posted: Sun Sep 17, 2006 7:17 pm Post subject: |
|
|
Hi KlausO, thanks for posting.
As far as the maturity of the D parser, it is not 100? complete, nor completely tested. At the time I last comitted to Enki SVN, the D lexer was about as far as I had verified the codebase. The actual D grammar is taken quite literally from the D docs on digitalmars.com, which I have some issues with. It also represents the state of D at about around 0.162, which pre-dates lazy delegates and possibly a few other tweaks.
Eventually, the library will mature as I get time (and code contributions) for the project.
As for the Enki XML stuff, the XML parser is the only verifiably working part at this time. XPath is a different matter - this is presently stubbed out, and is pending verification and a working backend to support it.
Eventually, I would like to marry these two (XML and XPath) to a DOM implementation so that I can tackle XSLT. An example set of D DOM interface stubs resides over on my old DSP project: http://svn.dsource.org/projects/dsp/trunk/xml/dom
(aside: I've pitched XMLDOM in D to many others before, but I gather the sheer size of the thing has kept anyone from implementing it (to the best of my knowledge anyway). Still, it's the unsung hero of the XML world, and a key component for *everythying* above XMLNS.)
100? of the above is of course BSD licensed, so happy hacking. I'll be posting around here when I get to updating things, but feel free to back-commit improvements if you'd like - I'll be glad to fold it into the project, provided it keeps the same license.
Quote: | Are they only a proof of concept or are you planning the next generation XSLT trafo ? |
Hey, I wouldn't mind a better XSLT implementation - especially one in D! There are so few 2.0 implementations out there, that we could certainly use a new one. But as far as "next-generation".... I doubt I could improve on XSLT beyond what has already been done aside from backind D for raw speed and efficency. _________________ -- !Eric.t.Anderton at gmail |
|
Back to top |
|
|
KlausO
Joined: 16 Feb 2006 Posts: 27 Location: Germany
|
Posted: Sat Sep 23, 2006 1:57 pm Post subject: |
|
|
Hi pragma,
I tried to play a little with the D parser but I'm stuck
I used the current revision of DDL (rev. 261). Compiling enki with build/dmd0.167 was easy due to your excellent build scripts. After that I tried to invoke enki and got an assertion inside enki:
Code: |
C:\svn\ddl>enki\enki.exe enki\library\d\Parser.bnf -t
Error: AssertError Failure Expression(172)
|
Maybe you could give me some hint ?
BTW, the xml/xpath samples work.
Thanks in advance,
Klaus |
|
Back to top |
|
|
pragma
Joined: 28 May 2004 Posts: 607 Location: Washington, DC
|
Posted: Fri Sep 29, 2006 10:39 am Post subject: |
|
|
Klaus, sorry for letting this post wait so long without a reply.
I have no idea what is causing that, but I will try to reproduce this when I get a chance. Sorry about this. _________________ -- !Eric.t.Anderton at gmail |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|