View mode: basic / threaded / horizontal-split · Log in · Help
May 26, 2005
DMD Frontend
Ok so the dmd front end source comes with the compiler, but is it actually
compilable in any way? ive tried to use the Parser class in the parse.cpp file
but it says that it needs Id.h, which is nowhere to be found. 

Has anyone had any success with it?
May 26, 2005
Re: DMD Frontend
imr1984 wrote:

> Ok so the dmd front end source comes with the compiler, but is it actually
> compilable in any way? ive tried to use the Parser class in the parse.cpp file
> but it says that it needs Id.h, which is nowhere to be found. 
> 
> Has anyone had any success with it?

FAQ, see http://www.prowiki.org/wiki4d/wiki.cgi?DMDSourceGuide

--anders
May 26, 2005
Re: DMD Frontend
"imr1984" <imr1984_member@pathlink.com> wrote in message 
news:d74sea$2nbj$1@digitaldaemon.com...
> Ok so the dmd front end source comes with the compiler, but is it actually
> compilable in any way? ive tried to use the Parser class in the parse.cpp 
> file
> but it says that it needs Id.h, which is nowhere to be found.
>
> Has anyone had any success with it?

see also http://home.comcast.net/~benhinkle/dmdfe/ the "dmd front end 
starter kit". I think it's at dmd.123 or so.
May 26, 2005
Dmdfe
Le Thu, 26 May 2005 12:27:58 -0400, Ben Hinkle a écrit :

> see also http://home.comcast.net/~benhinkle/dmdfe/ the "dmd front end 
> starter kit". I think it's at dmd.123 or so.

BTW I still cant compile it:

jeff@Anna:~/dmdfe$ make -f linux.mak
cd dmd; g++ idgen.c -o idgen
cd dmd; ./idgen
cd dmd; g++ impcnvgen.c -o impcnvgen
cd dmd; ./impcnvgen
g++ -c -g -Istubs -Idmd -odmd/access.o dmd/access.c
g++ -c -g -Istubs -Idmd -odmd/array.o dmd/array.c
g++ -c -g -Istubs -Idmd -odmd/attrib.o dmd/attrib.c
In file included from dmd/attrib.c:21:
dmd/declaration.h:31: error: use of enum `TOK' without previous declaration
dmd/declaration.h:31: error: déclaration ne déclarant rien du tout
dmd/declaration.h:32: error: use of enum `MATCH' without previous declaration
dmd/declaration.h:32: error: déclaration ne déclarant rien du tout
dmd/declaration.h:57: error: 'MATCH' is used as a type, but is not defined as a
  type.
dmd/declaration.h:392: error: use of enum `TOK' without previous declaration
dmd/declaration.h:392: error: le C++ ISO interdit la déclaration de « tok »
  sans type
dmd/declaration.h:394: error: use of enum `TOK' without previous declaration
dmd/declaration.h:395: error: le C++ ISO interdit la déclaration de « tok »
  sans type
make: *** [dmd/attrib.o] Erreur 1
jeff@Anna:~/dmdfe$
May 26, 2005
Re: DMD Frontend
thanks man that was just what i needed :)

Ive built your dmdfe, but it doesnt print anything like you said it does, it
just says that it parsed the mandel.d file successfully. 

In article <d74teh$2o44$1@digitaldaemon.com>, Ben Hinkle says...
>
>
>"imr1984" <imr1984_member@pathlink.com> wrote in message 
>news:d74sea$2nbj$1@digitaldaemon.com...
>> Ok so the dmd front end source comes with the compiler, but is it actually
>> compilable in any way? ive tried to use the Parser class in the parse.cpp 
>> file
>> but it says that it needs Id.h, which is nowhere to be found.
>>
>> Has anyone had any success with it?
>
>see also http://home.comcast.net/~benhinkle/dmdfe/ the "dmd front end 
>starter kit". I think it's at dmd.123 or so. 
>
>
May 26, 2005
Re: DMD Frontend
"imr1984" <imr1984_member@pathlink.com> wrote in message 
news:d755qt$2v64$1@digitaldaemon.com...
> thanks man that was just what i needed :)
>
> Ive built your dmdfe, but it doesnt print anything like you said it does, 
> it
> just says that it parsed the mandel.d file successfully.

oh, I might have taken out the debugging prints. I thought I had updated the 
help/readme. I'll fix that up.

> In article <d74teh$2o44$1@digitaldaemon.com>, Ben Hinkle says...
>>
>>
>>"imr1984" <imr1984_member@pathlink.com> wrote in message
>>news:d74sea$2nbj$1@digitaldaemon.com...
>>> Ok so the dmd front end source comes with the compiler, but is it 
>>> actually
>>> compilable in any way? ive tried to use the Parser class in the 
>>> parse.cpp
>>> file
>>> but it says that it needs Id.h, which is nowhere to be found.
>>>
>>> Has anyone had any success with it?
>>
>>see also http://home.comcast.net/~benhinkle/dmdfe/ the "dmd front end
>>starter kit". I think it's at dmd.123 or so.
>>
>>
>
>
May 26, 2005
Re: Dmdfe
hmm win32 version works fine.

In article <pan.2005.05.26.18.50.46.25133@wanadoo.fr>, G.Vidal says...
>
>Le Thu, 26 May 2005 12:27:58 -0400, Ben Hinkle a écrit :
>
>> see also http://home.comcast.net/~benhinkle/dmdfe/ the "dmd front end 
>> starter kit". I think it's at dmd.123 or so.
>
>BTW I still cant compile it:
>
>jeff@Anna:~/dmdfe$ make -f linux.mak
>cd dmd; g++ idgen.c -o idgen
>cd dmd; ./idgen
>cd dmd; g++ impcnvgen.c -o impcnvgen
>cd dmd; ./impcnvgen
>g++ -c -g -Istubs -Idmd -odmd/access.o dmd/access.c
>g++ -c -g -Istubs -Idmd -odmd/array.o dmd/array.c
>g++ -c -g -Istubs -Idmd -odmd/attrib.o dmd/attrib.c
>In file included from dmd/attrib.c:21:
>dmd/declaration.h:31: error: use of enum `TOK' without previous declaration
>dmd/declaration.h:31: error: déclaration ne déclarant rien du tout
>dmd/declaration.h:32: error: use of enum `MATCH' without previous declaration
>dmd/declaration.h:32: error: déclaration ne déclarant rien du tout
>dmd/declaration.h:57: error: 'MATCH' is used as a type, but is not defined as a
>   type.
>dmd/declaration.h:392: error: use of enum `TOK' without previous declaration
>dmd/declaration.h:392: error: le C++ ISO interdit la déclaration de « tok »
>   sans type
>dmd/declaration.h:394: error: use of enum `TOK' without previous declaration
>dmd/declaration.h:395: error: le C++ ISO interdit la déclaration de « tok »
>   sans type
>make: *** [dmd/attrib.o] Erreur 1
>jeff@Anna:~/dmdfe$
>
May 26, 2005
Re: Dmdfe
Le Thu, 26 May 2005 19:11:41 +0000, imr1984 a écrit :

> hmm win32 version works fine.

The code is not ISO compliant.

To compile it I had to add #include "" directives in 3 or 4 source file,
then it compiled with a lot of warning saying that the code uses
deprecated things in the libc.

But when I run it, it doesn't print anything :(
May 26, 2005
Re: Dmdfe
"G.Vidal" <gyvidal@wanadoo.fr> wrote in message 
news:pan.2005.05.26.18.50.46.25133@wanadoo.fr...
> Le Thu, 26 May 2005 12:27:58 -0400, Ben Hinkle a écrit :
>
>> see also http://home.comcast.net/~benhinkle/dmdfe/ the "dmd front end
>> starter kit". I think it's at dmd.123 or so.
>
> BTW I still cant compile it:

Sorry - I still haven't updated that. I remember getting those before and I 
vaguely recall I had to insert some more includes into the c files. I'm 
afraid it's a bit of trial and error.

> jeff@Anna:~/dmdfe$ make -f linux.mak
> cd dmd; g++ idgen.c -o idgen
> cd dmd; ./idgen
> cd dmd; g++ impcnvgen.c -o impcnvgen
> cd dmd; ./impcnvgen
> g++ -c -g -Istubs -Idmd -odmd/access.o dmd/access.c
> g++ -c -g -Istubs -Idmd -odmd/array.o dmd/array.c
> g++ -c -g -Istubs -Idmd -odmd/attrib.o dmd/attrib.c
> In file included from dmd/attrib.c:21:
> dmd/declaration.h:31: error: use of enum `TOK' without previous 
> declaration
> dmd/declaration.h:31: error: déclaration ne déclarant rien du tout
> dmd/declaration.h:32: error: use of enum `MATCH' without previous 
> declaration
> dmd/declaration.h:32: error: déclaration ne déclarant rien du tout
> dmd/declaration.h:57: error: 'MATCH' is used as a type, but is not defined 
> as a
>   type.
> dmd/declaration.h:392: error: use of enum `TOK' without previous 
> declaration
> dmd/declaration.h:392: error: le C++ ISO interdit la déclaration de « 
> tok »
>   sans type
> dmd/declaration.h:394: error: use of enum `TOK' without previous 
> declaration
> dmd/declaration.h:395: error: le C++ ISO interdit la déclaration de « 
> tok »
>   sans type
> make: *** [dmd/attrib.o] Erreur 1
> jeff@Anna:~/dmdfe$
>
May 26, 2005
Re: DMD Frontend
Ben, can you give me an idea of how I could modify your dmdfe to print out a
tree/list of symbols that were found in the source.

At the moment im experimenting with adding print() calls after the 3rd semantic
analysis but there is so much code its overwhelming...

In article <d756kd$2vr9$1@digitaldaemon.com>, Ben Hinkle says...
>
>
>"imr1984" <imr1984_member@pathlink.com> wrote in message 
>news:d755qt$2v64$1@digitaldaemon.com...
>> thanks man that was just what i needed :)
>>
>> Ive built your dmdfe, but it doesnt print anything like you said it does, 
>> it
>> just says that it parsed the mandel.d file successfully.
>
>oh, I might have taken out the debugging prints. I thought I had updated the 
>help/readme. I'll fix that up.
>
>> In article <d74teh$2o44$1@digitaldaemon.com>, Ben Hinkle says...
>>>
>>>
>>>"imr1984" <imr1984_member@pathlink.com> wrote in message
>>>news:d74sea$2nbj$1@digitaldaemon.com...
>>>> Ok so the dmd front end source comes with the compiler, but is it 
>>>> actually
>>>> compilable in any way? ive tried to use the Parser class in the 
>>>> parse.cpp
>>>> file
>>>> but it says that it needs Id.h, which is nowhere to be found.
>>>>
>>>> Has anyone had any success with it?
>>>
>>>see also http://home.comcast.net/~benhinkle/dmdfe/ the "dmd front end
>>>starter kit". I think it's at dmd.123 or so.
>>>
>>>
>>
>> 
>
>
« First   ‹ Prev
1 2
Top | Discussion index | About this forum | D home