Sat Sep 19 12:04:36 CEST 2009
C extensions using standard syntax.
Continuaton of  in staapl/staapl/c. The idea is to embed macros in
C source code as a way to sneak metaprogramming techniques into the
embedded C world.
Let's try to build a framework for this. What is needed?
- c.plt input wrappers (cpp, mfile) OK
- (pretty) printing to C
- conversion from c.plt data structs <-> code processor structs
c.plt still needs the C preprocessor to perform expansions, so that's
wrapped using cpp.ss (which uses ../tools/mfile.ss). NEXT: get a grip
on c.plt data structures.
The AST is here. Ok, I have a first draft of a partial naive
pretty printer. Looks like we're there.