Jump to page: 1 2
Thread overview
Java to D
Feb 12, 2006
blls
Feb 12, 2006
Charles
Feb 12, 2006
Charles
Feb 12, 2006
blls
Feb 12, 2006
bobef
Feb 12, 2006
blls
Feb 13, 2006
Brad Anderson
Feb 13, 2006
pragma
Feb 13, 2006
Klaus Oberhofer
Feb 13, 2006
Charles
Feb 13, 2006
Charles
Feb 13, 2006
Walter Bright
February 12, 2006
Hi,
due to the fact that this is my first message here : Why D is for me !
Comming from Modula2 and 3 (unfortunately both quit dead) D is absolutely
what I need. Thanks Walter.

Just an idea. Wh not choose ANTLR parser/lexer to translate Java into D. A
1.3 Java grammar is available. To give you an idea wehat I am talking about
:
http://www.codegeneration.net/tiki-read_article.php?articleId=77

The ANTLR Homepage :
http://www.antlr.org/
The grammalist
http://www.antlr.org/grammar/list

ANTLR is written in Java.So porting this tool to D is at least possible
I hope this will help to port Jface and Draw2D....
HTH Bjoern Lietz-Spendig France


February 12, 2006
> Just an idea. Wh not choose ANTLR parser/lexer to translate Java into D. A


"blls" <lietz@wanadoo.fr> wrote in message news:dsnfik$1hog$1@digitaldaemon.com...
> Hi,
> due to the fact that this is my first message here : Why D is for me !
> Comming from Modula2 and 3 (unfortunately both quit dead) D is absolutely
> what I need. Thanks Walter.
>
> Just an idea. Wh not choose ANTLR parser/lexer to translate Java into D. A 1.3 Java grammar is available. To give you an idea wehat I am talking
about
> : http://www.codegeneration.net/tiki-read_article.php?articleId=77
>
> The ANTLR Homepage :
> http://www.antlr.org/
> The grammalist
> http://www.antlr.org/grammar/list
>
> ANTLR is written in Java.So porting this tool to D is at least possible
> I hope this will help to port Jface and Draw2D....
> HTH Bjoern Lietz-Spendig France
>
>


February 12, 2006
Damn that alt-enter.

Java Antlr gramar is a great idea.

> I hope this will help to port Jface and Draw2D....

While Im not a fan of JFace we defintely need Draw2D.




"Charles" <noone@nowhere.com> wrote in message news:dsnkov$1nbe$1@digitaldaemon.com...
> > Just an idea. Wh not choose ANTLR parser/lexer to translate Java into D.
A
>
>
> "blls" <lietz@wanadoo.fr> wrote in message news:dsnfik$1hog$1@digitaldaemon.com...
> > Hi,
> > due to the fact that this is my first message here : Why D is for me !
> > Comming from Modula2 and 3 (unfortunately both quit dead) D is
absolutely
> > what I need. Thanks Walter.
> >
> > Just an idea. Wh not choose ANTLR parser/lexer to translate Java into D.
A
> > 1.3 Java grammar is available. To give you an idea wehat I am talking
> about
> > : http://www.codegeneration.net/tiki-read_article.php?articleId=77
> >
> > The ANTLR Homepage :
> > http://www.antlr.org/
> > The grammalist
> > http://www.antlr.org/grammar/list
> >
> > ANTLR is written in Java.So porting this tool to D is at least possible
> > I hope this will help to port Jface and Draw2D....
> > HTH Bjoern Lietz-Spendig France
> >
> >
>
>


February 12, 2006
Comming from Germany, living in France, and actually working with an os in
dutch. Aargh.
Additional info:
The complete Java 1.5 grammar is also available.
A complete GNU C Translater seems to be available (could be used for .h to d
translations)

I will spend some time to browse through the documents. But it seems that
ANTLR is an excellent tool to write a translater. ( a how to write an
translater using ANTLR manual is also available)However, I am a D newbie so
I guess I will run into trouble.. maybe someone more experienced will pick
up the ball.
Bjoern

"Charles" <noone@nowhere.com> schreef in bericht news:dsnkov$1nbe$1@digitaldaemon.com...
> > Just an idea. Wh not choose ANTLR parser/lexer to translate Java into D.
A
>
>
> "blls" <lietz@wanadoo.fr> wrote in message news:dsnfik$1hog$1@digitaldaemon.com...
> > Hi,
> > due to the fact that this is my first message here : Why D is for me !
> > Comming from Modula2 and 3 (unfortunately both quit dead) D is
absolutely
> > what I need. Thanks Walter.
> >
> > Just an idea. Wh not choose ANTLR parser/lexer to translate Java into D.
A
> > 1.3 Java grammar is available. To give you an idea wehat I am talking
> about
> > : http://www.codegeneration.net/tiki-read_article.php?articleId=77
> >
> > The ANTLR Homepage :
> > http://www.antlr.org/
> > The grammalist
> > http://www.antlr.org/grammar/list
> >
> > ANTLR is written in Java.So porting this tool to D is at least possible
> > I hope this will help to port Jface and Draw2D....
> > HTH Bjoern Lietz-Spendig France
> >
> >
>
>


February 12, 2006
What about "Ragel State Machine Compiler"? I read a post sometime ago it was translated to D or something...

blls wrote:
> Hi,
> due to the fact that this is my first message here : Why D is for me !
> Comming from Modula2 and 3 (unfortunately both quit dead) D is absolutely
> what I need. Thanks Walter.
> 
> Just an idea. Wh not choose ANTLR parser/lexer to translate Java into D. A
> 1.3 Java grammar is available. To give you an idea wehat I am talking about
> :
> http://www.codegeneration.net/tiki-read_article.php?articleId=77
> 
> The ANTLR Homepage :
> http://www.antlr.org/
> The grammalist
> http://www.antlr.org/grammar/list
> 
> ANTLR is written in Java.So porting this tool to D is at least possible
> I hope this will help to port Jface and Draw2D....
> HTH Bjoern Lietz-Spendig France
> 
> 
February 12, 2006
"bobef" <bobef@lessequal.com> schreef in bericht news:dsnp4e$1sks$1@digitaldaemon.com...
> What about "Ragel State Machine Compiler"? I read a post sometime ago it was translated to D or something...

sorry, no idea.
but to make it clear. it is not nessesary to translate antlr into D in oder
to use this tool to translate java into d code.
bjoern


>
> blls wrote:
> > Hi,
> > due to the fact that this is my first message here : Why D is for me !
> > Comming from Modula2 and 3 (unfortunately both quit dead) D is
absolutely
> > what I need. Thanks Walter.
> >
> > Just an idea. Wh not choose ANTLR parser/lexer to translate Java into D.
A
> > 1.3 Java grammar is available. To give you an idea wehat I am talking
about
> > : http://www.codegeneration.net/tiki-read_article.php?articleId=77
> >
> > The ANTLR Homepage :
> > http://www.antlr.org/
> > The grammalist
> > http://www.antlr.org/grammar/list
> >
> > ANTLR is written in Java.So porting this tool to D is at least possible
> > I hope this will help to port Jface and Draw2D....
> > HTH Bjoern Lietz-Spendig France
> >
> >


February 13, 2006
blls wrote:
> Hi,
> due to the fact that this is my first message here : Why D is for me !
> Comming from Modula2 and 3 (unfortunately both quit dead) D is absolutely
> what I need. Thanks Walter.
> 
> Just an idea. Wh not choose ANTLR parser/lexer to translate Java into D. A
> 1.3 Java grammar is available. To give you an idea wehat I am talking about
> :
> http://www.codegeneration.net/tiki-read_article.php?articleId=77
> 
> The ANTLR Homepage :
> http://www.antlr.org/
> The grammalist
> http://www.antlr.org/grammar/list
> 
> ANTLR is written in Java.So porting this tool to D is at least possible
> I hope this will help to port Jface and Draw2D....
> HTH Bjoern Lietz-Spendig France
> 
> 

I would like to see someone pick up the Molt project on dsource.org - IIRC, Scott Sanders had modified the Jikes compiler to output the Java source files into XML, and then use XSLT to convert the XML to D source.

http://www.dsource.org/forums/viewtopic.php?t=529

BA
February 13, 2006
In article <dsqac5$2bj9$1@digitaldaemon.com>, Brad Anderson says...
>
>blls wrote:
>> Hi,
>> due to the fact that this is my first message here : Why D is for me !
>> Comming from Modula2 and 3 (unfortunately both quit dead) D is absolutely
>> what I need. Thanks Walter.
>> 
>> Just an idea. Wh not choose ANTLR parser/lexer to translate Java into D. A
>> 1.3 Java grammar is available. To give you an idea wehat I am talking about
>> :
>> http://www.codegeneration.net/tiki-read_article.php?articleId=77
>> 
>> The ANTLR Homepage :
>> http://www.antlr.org/
>> The grammalist
>> http://www.antlr.org/grammar/list
>> 
>> ANTLR is written in Java.So porting this tool to D is at least possible
>> I hope this will help to port Jface and Draw2D....
>> HTH Bjoern Lietz-Spendig France
>> 
>> 
>
>I would like to see someone pick up the Molt project on dsource.org - IIRC, Scott Sanders had modified the Jikes compiler to output the Java source files into XML, and then use XSLT to convert the XML to D source.
>
>http://www.dsource.org/forums/viewtopic.php?t=529
>
>BA

Not to mention that dsource also hosts *two* lexer/parser generator frameworks:

http://www.dsource.org/projects/languagemachine/ http://www.dsource.org/projects/dgrammar/

Granted, they're not exactly ready for prime-time, but it might help with weening the community off of Java bit more.

- Eric Anderton at yahoo
February 13, 2006
pragma <pragma_member@pathlink.com> wrote in news:dsqe2q$2fsk$1@digitaldaemon.com:

> 
> Not to mention that dsource also hosts *two* lexer/parser generator frameworks:
> 
> http://www.dsource.org/projects/languagemachine/ http://www.dsource.org/projects/dgrammar/
> 
> Granted, they're not exactly ready for prime-time, but it might help with weening the community off of Java bit more.
> 
> - Eric Anderton at yahoo

Yeah, and one of them (the languagemachine) even has a working D frontend
/backend and seems to be very suitable for source-to-source translation.
Although, I have to admit that I tried to grasp the idea behind the
languagemachine during almost four evenings with little success.
I managed to get a feeling for rule selection in the frontend phase. But
when it comes to the connection between frontend/backend it took me down :-
(. So I put it aside, maybe my next try will have more success.




February 13, 2006
I've written a lexer for Java that I gave to Kris as the foundation for a j2d tool. It doesn't parse, it just lexes. I'll be happy to supply it to anyone else who wants to work on a j2d tool.

For anyone curious about how compilers work, building a j2d tool would be a great way to learn, while at the same time producing a tool that could be very valuable.


« First   ‹ Prev
1 2