View mode: basic / threaded / horizontal-split · Log in · Help
June 29, 2004
Antlr D grammar
Im going to start on a D grammar for antlr, does anyone use antlr ?  Its my
first time and would appreciate the experienced help :).  After that we could
get antlr to generate D code!

Thanks,
Charlie
June 30, 2004
Re: Antlr D grammar
Charlie wrote:
> Im going to start on a D grammar for antlr, does anyone use antlr ?  Its my
> first time and would appreciate the experienced help :).  After that we could
> get antlr to generate D code!
> 
> Thanks,
> Charlie
> 
> 
I investigated into that direction. Terence Parr (the one who writes 
antlr) told me that he started a new tool which will make supporting new 
languages easier. You should a a look at grammatica 
(http://www.nongnu.org/grammatica). Its syntax is better.
I've "composed" an EBNF Grammar for D, but it's not finished.
Does anybody know a good tool that supports you creating one?
June 30, 2004
Re: Antlr D grammar
Good <time-of-day>!

"Charlie" <Charlie_member@pathlink.com> wrote in message
news:cbst9p$8ph$1@digitaldaemon.com...
> Im going to start on a D grammar for antlr, does anyone use antlr ?  Its
my
> first time and would appreciate the experienced help :).  After that we
could
> get antlr to generate D code!
Yes, I'm going to use Antlr for parser and syntax tree builder. It seems
it's the best tool with C++ support out there.

--
With respect,
         Alex Besogonov (alexy@izh.com)
June 30, 2004
Re: Antlr D grammar
"Charlie" <Charlie_member@pathlink.com> wrote in message
news:cbst9p$8ph$1@digitaldaemon.com...
> Im going to start on a D grammar for antlr, does anyone use antlr ?  Its
my
> first time and would appreciate the experienced help :).  After that we
could
> get antlr to generate D code!

Great! I started writing up D's grammar a couple of times but i allways got
into
problems because i'm not very good at this. Can't wait to see what you
write!
Can you please post it here when it is done :)

>
> Thanks,
> Charlie
>
>
July 01, 2004
Re: Antlr D grammar
>I've "composed" an EBNF Grammar for D, but it's not finished.

Sweet!  Care to share ?  Or coordinate efforts ?

>Does anybody know a good tool that supports you creating one?

Not I, been trying to compose one by hand ( I also have Seiber's yacc gramar if
u like ), but currently im struggling with attributes.

Charlie

In article <cbt3si$hnu$1@digitaldaemon.com>, Stephan Wienczny says...
>
>Charlie wrote:
>> Im going to start on a D grammar for antlr, does anyone use antlr ?  Its my
>> first time and would appreciate the experienced help :).  After that we could
>> get antlr to generate D code!
>> 
>> Thanks,
>> Charlie
>> 
>> 
>I investigated into that direction. Terence Parr (the one who writes 
>antlr) told me that he started a new tool which will make supporting new 
>languages easier. You should a a look at grammatica 
>(http://www.nongnu.org/grammatica). Its syntax is better.
>I've "composed" an EBNF Grammar for D, but it's not finished.
>Does anybody know a good tool that supports you creating one?
July 01, 2004
Re: Antlr D grammar
I usually like to compile as I go , so I know it works, but I think Im just
going to copy the grammar off DMD and work it out later, anyone know how
complete it is ?

Charlie

In article <cc08mm$2rbk$1@digitaldaemon.com>, Charlie says...
>
>>I've "composed" an EBNF Grammar for D, but it's not finished.
>
>Sweet!  Care to share ?  Or coordinate efforts ?
>
>>Does anybody know a good tool that supports you creating one?
>
>Not I, been trying to compose one by hand ( I also have Seiber's yacc gramar if
>u like ), but currently im struggling with attributes.
>
>Charlie
>
>In article <cbt3si$hnu$1@digitaldaemon.com>, Stephan Wienczny says...
>>
>>Charlie wrote:
>>> Im going to start on a D grammar for antlr, does anyone use antlr ?  Its my
>>> first time and would appreciate the experienced help :).  After that we could
>>> get antlr to generate D code!
>>> 
>>> Thanks,
>>> Charlie
>>> 
>>> 
>>I investigated into that direction. Terence Parr (the one who writes 
>>antlr) told me that he started a new tool which will make supporting new 
>>languages easier. You should a a look at grammatica 
>>(http://www.nongnu.org/grammatica). Its syntax is better.
>>I've "composed" an EBNF Grammar for D, but it's not finished.
>>Does anybody know a good tool that supports you creating one?
>
>
July 01, 2004
Re: Antlr D grammar
"Charlie" <Charlie_member@pathlink.com> wrote in message
news:cc1da1$1lio$1@digitaldaemon.com...
> I usually like to compile as I go , so I know it works, but I think Im
just
> going to copy the grammar off DMD and work it out later, anyone know how
> complete it is ?
>

Quite uncomplete unfortunatelly! There are a lot of productions missing :(

> Charlie
>
> In article <cc08mm$2rbk$1@digitaldaemon.com>, Charlie says...
> >
> >>I've "composed" an EBNF Grammar for D, but it's not finished.
> >
> >Sweet!  Care to share ?  Or coordinate efforts ?
> >
> >>Does anybody know a good tool that supports you creating one?
> >
> >Not I, been trying to compose one by hand ( I also have Seiber's yacc
gramar if
> >u like ), but currently im struggling with attributes.
> >
> >Charlie
> >
> >In article <cbt3si$hnu$1@digitaldaemon.com>, Stephan Wienczny says...
> >>
> >>Charlie wrote:
> >>> Im going to start on a D grammar for antlr, does anyone use antlr ?
Its my
> >>> first time and would appreciate the experienced help :).  After that
we could
> >>> get antlr to generate D code!
> >>>
> >>> Thanks,
> >>> Charlie
> >>>
> >>>
> >>I investigated into that direction. Terence Parr (the one who writes
> >>antlr) told me that he started a new tool which will make supporting new
> >>languages easier. You should a a look at grammatica
> >>(http://www.nongnu.org/grammatica). Its syntax is better.
> >>I've "composed" an EBNF Grammar for D, but it's not finished.
> >>Does anybody know a good tool that supports you creating one?
> >
> >
>
>
July 05, 2004
Re: Antlr D grammar
Hmm.... i was already going to do a complete port of COCO/R to D, 
meaning first the output and then the compiler. Never got to it though. 
I believe COCO/R is a predecessor of ANTLR but it's tiny, simple, fast, 
and very easy to use. Any interest? COCO/R was originally written in 
Modula, then ported to C, Delphi, Java, C#...

Drawback: the parsers generated are non-reentrant, IIRC - though it's 
nothing a cold shower cannot change.

-eye

Charlie schrieb:

> Im going to start on a D grammar for antlr, does anyone use antlr ?  Its my
> first time and would appreciate the experienced help :).  After that we could
> get antlr to generate D code!
> 
> Thanks,
> Charlie
July 05, 2004
Re: Antlr D grammar
In article <cbt3si$hnu$1@digitaldaemon.com>, Stephan Wienczny says...
>
>Charlie wrote:
>> Im going to start on a D grammar for antlr, does anyone use antlr ?  Its my
>> first time and would appreciate the experienced help :).  After that we could
>> get antlr to generate D code!
>> 
>> Thanks,
>> Charlie
>> 
>> 
>I investigated into that direction. Terence Parr (the one who writes 
>antlr) told me that he started a new tool which will make supporting new 
>languages easier. You should a a look at grammatica 
>(http://www.nongnu.org/grammatica). Its syntax is better.
>I've "composed" an EBNF Grammar for D, but it's not finished.
>Does anybody know a good tool that supports you creating one?
Top | Discussion index | About this forum | D home