FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

v0.3d and upcoming v0.4a

 
Post new topic   Reply to topic     Forum Index -> DGrammar
View previous topic :: View next topic  
Author Message
svanleent



Joined: 25 Sep 2004
Posts: 53

PostPosted: Thu Oct 06, 2005 11:58 am    Post subject: v0.3d and upcoming v0.4a Reply with quote

Today I posted version v0.3d, version v0.3d includes case insensitive switches, which I promised ages ago:

Code:
/si
Is a case insensitive string token
Code:
/ri
Is a case insensitive regular expression token

I am now implementing the following switches which I promised aeons ago:

Code:
/sx
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
Code:
/sxi
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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
pragma



Joined: 28 May 2004
Posts: 607
Location: Washington, DC

PostPosted: Thu Oct 06, 2005 1:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
svanleent



Joined: 25 Sep 2004
Posts: 53

PostPosted: Thu Oct 06, 2005 1:33 pm    Post subject: Reply with quote

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 Smile, 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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
svanleent



Joined: 25 Sep 2004
Posts: 53

PostPosted: Fri Oct 07, 2005 6:41 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DGrammar All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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