Thread overview
FCC is a simple compiled C-like language with a compiler written in D.
Jul 23, 2010
FeepingCreature
Re: FCC is a simple compiled C-like language with a compiler written
Jul 24, 2010
bearophile
Jul 24, 2010
FeepingCreature
July 23, 2010
I've worked on it on and off over the last few months, and with the addition of classes and the 5000 lines milestone, I thought I'd get some early feedback.

http://www.reddit.com/r/programming/comments/csxd6/fcc_01_is_a_compiler_for_a_simple_clike_language/ 0.1 release reddit announcement.

The ultimate intent is to support a high degree of syntactical flexibility via compile-time plugins; the goal for 0.2 is to rewrite the compiler in the language itself and redesign the object system to support plugins.

The compiler is written in D1/phobos/tools and compiles to assembly; using GNU binutils for binary generation. Only Linux/x86-32 is currently supported.

Feedback appreciated!

July 24, 2010
FeepingCreature:
> Feedback appreciated!

I looks cute. It can be useful for to invent and test possible designs for D2/D3, for example to test and try alternative designs for ASM macros that may be added to D3.

Bye,
bearophile
July 24, 2010
On 24.07.2010 02:53, bearophile wrote:
> FeepingCreature:
>> Feedback appreciated!
> 
> I looks cute. It can be useful for to invent and test possible designs for D2/D3, for example to test and try alternative designs for ASM macros that may be added to D3.
> 
> Bye,
> bearophile

The reason that AST macros are hairy in any language but Lisp is that you have this complicated syntax, so to expose it to the program requires you to add equivalents for all the compiler's classes, functions and data structures to your macro language. I hope to sidestep this by eventually rewriting the compiler in the language itself, so that I can expose compiler internals _directly_.