Closed huntzhan closed 9 years ago
The goal of v0.1
is get things done, therefore the C++ code gen procedure would reuse the data structure of AST. Things might change rapidly in upcoming versions.
Idea of v0.1
code gen is as follow:
.cc
file that contains logic to build up the AST(might be a static function) and option record.src/gen_cpp
.clidoc
, which is responsible for loading doc
, invoking code gen procedure, generating static libraries and so on.
There are two general procedures in
clidoc
:doc
, collect necessary information for code gen.argv
.In v0.1,
clidoc
only support code gen for C++. Python and Rust would be supported in v0.2.