2009/2/12 David-Sarah Hopwood <[email protected]>:
>> The main things that we need in order to self-host the BitC compiler are: >> >> 1. An interface module for the libicu components that we rely on. >> 2. A parser generator that can handle actions written in BitC. >> 3. A final choice of surface syntax. >> 4. An AST compiler similar to ASTmaker that emits BitC code. > > For 2 and 4, I thoroughly recommend ANTLR (version 3.1, which supports > tree->tree rewriting grammars). It is BSD-licensed. The reference manual is > <http://www.pragprog.com/titles/tpantlr/the-definitive-antlr-reference>. It does have an ML version, shipped with the SML/NJ compiler. I have the bias that having algebraic datatypes make your life easier when handling abstract syntax trees. - Gergely _______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
