From: Nathan B. <nat...@co...> - 2008-02-27 14:35:20
|
Hello. I have been researching how to make a small compiler in c++ for a new language. I remember seeing some where about an example of this someplace, maybe in MinGW install, or instructions, or on GNU. It's name had something to do with tree, I think. I was wondering if any of you had heard of this. Thank you for your time. |
From: Dave K. <dav...@ar...> - 2008-02-27 15:04:54
|
On 27 February 2008 14:35, Nathan Braswell wrote: > Hello. > I have been researching how to make a small compiler in c++ for a new > language. > I remember seeing some where about an example of this someplace, maybe > in MinGW install, or instructions, or on GNU. > It's name had something to do with tree, I think. > I was wondering if any of you had heard of this. You are thinking of "treelang", which is a "toy" language frontend implemented as part of GCC, it serves as an example of how to write a new language frontend for gcc. It's in the gcc sources in the ..../gcc/treelang/ dir if you unpack the full gcc tarball. cheers, DaveK -- Can't think of a witty .sigline today.... |
From: Nathan B. <nat...@co...> - 2008-02-27 15:12:23
|
Thanks Dave Korn wrote: > On 27 February 2008 14:35, Nathan Braswell wrote: > > >> Hello. >> I have been researching how to make a small compiler in c++ for a new >> language. >> I remember seeing some where about an example of this someplace, maybe >> in MinGW install, or instructions, or on GNU. >> It's name had something to do with tree, I think. >> I was wondering if any of you had heard of this. >> > > You are thinking of "treelang", which is a "toy" language frontend > implemented as part of GCC, it serves as an example of how to write a new > language frontend for gcc. > > It's in the gcc sources in the ..../gcc/treelang/ dir if you unpack the full > gcc tarball. > > > > cheers, > DaveK > |