www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - FCC is a simple compiled C-like language with a compiler written

reply FeepingCreature <default_357-line yahoo.de> writes:
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_si
ple_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!
Jul 23 2010
parent reply bearophile <bearophileHUGS lycos.com> writes:
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
Jul 23 2010
parent FeepingCreature <default_357-line yahoo.de> writes:
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_.
Jul 23 2010