Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
July 23, 2010 FCC is a simple compiled C-like language with a compiler written in D. | ||||
---|---|---|---|---|
| ||||
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 Re: FCC is a simple compiled C-like language with a compiler written | ||||
---|---|---|---|---|
| ||||
Posted in reply to FeepingCreature | 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 Re: FCC is a simple compiled C-like language with a compiler written | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | 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_.
|
Copyright © 1999-2021 by the D Language Foundation