View previous topic :: View next topic |
Author |
Message |
qbert
Joined: 30 Mar 2004 Posts: 209 Location: Dallas, Texas
|
Posted: Thu Jul 15, 2004 4:39 pm Post subject: D Antlr grammar |
|
|
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 |
|
|
Wienczny
Joined: 10 Apr 2004 Posts: 35
|
Posted: Fri Jul 16, 2004 12:08 pm Post subject: |
|
|
You could post your file to the Antlr share list.
This would draw some attention for D... |
|
Back to top |
|
|
teqdruid
Joined: 11 May 2004 Posts: 390 Location: UMD
|
Posted: Sun Aug 22, 2004 2:24 am Post subject: Java Code |
|
|
How hard would it be to get this to generate Java code? |
|
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
|