View previous topic :: View next topic |
Author |
Message |
svanleent
Joined: 25 Sep 2004 Posts: 53
|
Posted: Thu Oct 06, 2005 11:58 am Post subject: v0.3d and upcoming v0.4a |
|
|
Today I posted version v0.3d, version v0.3d includes case insensitive switches, which I promised ages ago:
Is a case insensitive string token
Is a case insensitive regular expression token
I am now implementing the following switches which I promised aeons ago:
Is a case sensitive, exclusive, string token, this can be used when a regular expression also matches, but you want to force that a specific string matches and not any regular expression
Same as above, but case insensitive
It should work, but I need to test it, do really see if it works _________________ How C++ became ancient
Last edited by svanleent on Fri Oct 07, 2005 12:24 pm; edited 1 time in total |
|
Back to top |
|
|
pragma
Joined: 28 May 2004 Posts: 607 Location: Washington, DC
|
Posted: Thu Oct 06, 2005 1:06 pm Post subject: |
|
|
Hi!
I'm finding this really interesting, and got a first glimpse of what DGrammar is all about since you posted the .pdf documentation. Between this and LM, D is really shaping up to have a nice collection of parsing tools.
I happen to like your syntax simply because its practically BNF, which is typically where I start whenever I build a parser. However, I'm primarily a windows developer and want to test this out, but I can't build this without downloading a whole mess of GNU tools. This leads me to my question:
Do you plan for DGrammar to be self-hosting any time soon? I see that its already being built with lexx and yacc, so why not take the next step?
I think you have enough working right now to write a pure-D engine that uses DGrammar itself to drive the parser/lexer portions of the software. All you'd have to do is put the dgrammar output on SVN along with the stub code that drives it.
That way, itd be easy for everyone to give it a go, not to mention give you a wonderful proof-of-concept for your tool. _________________ -- !Eric.t.Anderton at gmail |
|
Back to top |
|
|
svanleent
Joined: 25 Sep 2004 Posts: 53
|
Posted: Thu Oct 06, 2005 1:33 pm Post subject: |
|
|
Quote: | I'm finding this really interesting, and got a first glimpse of what DGrammar is all about since you posted the .pdf documentation. Between this and LM, D is really shaping up to have a nice collection of parsing tools. |
Thank you, gives me motivation to continue
Quote: | I happen to like your syntax simply because its practically BNF, which is typically where I start whenever I build a parser. However, I'm primarily a windows developer and want to test this out, but I can't build this without downloading a whole mess of GNU tools. This leads me to my question:
Do you plan for DGrammar to be self-hosting any time soon? I see that its already being built with lexx and yacc, so why not take the next step?
I think you have enough working right now to write a pure-D engine that uses DGrammar itself to drive the parser/lexer portions of the software. All you'd have to do is put the dgrammar output on SVN along with the stub code that drives it. |
I am going to transfer the C++ code to D and the LEX/YACC code to DGrammar, this fixes also a problem with UTF-8 encoding , meanwhile, it is possible to compile using VC++ or BCD, I tried it myself, and found out happily that it worked, problem is, I don't have a VC++ or BCD compiler right now.
Quote: | That way, itd be easy for everyone to give it a go, not to mention give you a wonderful proof-of-concept for your tool. |
I will keep this in mind, you are right about this.
Regards,
Sjoerd _________________ How C++ became ancient |
|
Back to top |
|
|
svanleent
Joined: 25 Sep 2004 Posts: 53
|
Posted: Fri Oct 07, 2005 6:41 am Post subject: |
|
|
I found a Microsoft C and C++ compiler of MS VS.NET 2003, and it works. But you do need GNU Bison and GNU FLEX to get it all going. Instead of:
make
make install
Run
make -fMakefile.win32
from the source tree, within the trunk folder.
http://svn.dsource.org/projects/dgrammar/trunk/Makefile.win32
Regards,
Sjoerd[/url] _________________ How C++ became ancient |
|
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
|