[<<][staapl][>>][..]
Sat Sep 19 12:04:36 CEST 2009
C extensions using standard syntax.
Continuaton of [1] 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[2]. Ok, I have a first draft of a partial naive
pretty printer. Looks like we're there.
[1] entry://../meta/20090919-112256
[2] http://planet.plt-scheme.org/package-source/dherman/c.plt/3/2/ast.ss
[Reply][About]
[<<][staapl][>>][..]