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

D Antlr grammar

 
Post new topic   Reply to topic     Forum Index -> General
View previous topic :: View next topic  
Author Message
qbert



Joined: 30 Mar 2004
Posts: 209
Location: Dallas, Texas

PostPosted: Thu Jul 15, 2004 4:39 pm    Post subject: D Antlr grammar Reply with quote

Hey all, here is an antlr grammar file for D.

Things missing

-Being able to handle attributes as ( debug( foo ) doSomething(); , or debug(foo) : doSomething(); ) , it handles {} blocks but I can't get it work for the others without major ambiguities.

-Templates and mixins

-Slicing

The slicing is mostly due to how java's lexer handles floats, i dont see that as a big problem ( for someone who knows what there doing, aka not me ).

Im terrible with grammars so its possible/probable the grammar is very ugly, Im going to try to write one by hand so I get a better feel for what im doing, but if you get this working PLEASE post here again, fame and fortune will be yours!

I just realized u cant post attachments so heres the grammar, http://www.atari-soldiers.com/dsource_antlr.zip

Thanks,
Q-dizzle
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Wienczny



Joined: 10 Apr 2004
Posts: 35

PostPosted: Fri Jul 16, 2004 12:08 pm    Post subject: Reply with quote

You could post your file to the Antlr share list.
This would draw some attention for D...
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
teqdruid



Joined: 11 May 2004
Posts: 390
Location: UMD

PostPosted: Sun Aug 22, 2004 2:24 am    Post subject: Java Code Reply with quote

How hard would it be to get this to generate Java code?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> General 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