diff options
Diffstat (limited to 'c_parser/src/parser_main.cpp')
-rw-r--r-- | c_parser/src/parser_main.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/c_parser/src/parser_main.cpp b/c_parser/src/parser_main.cpp new file mode 100644 index 0000000..9626334 --- /dev/null +++ b/c_parser/src/parser_main.cpp @@ -0,0 +1,15 @@ +#include "ast.hpp" + +#include <iostream> + +int main(int argc, char *argv[]) { + ast_Top *ast = parseAST(); + + std::cout << "<?xml version=\"1.0\"?>" << std::endl << "<Program>" << std::endl; + + ast->print(); + + std::cout << "</Program>" << std::endl; + + return 0; +} |