1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include "node.hpp" #include "bindings.hpp" #include <iostream> Node* parseAST(); int main(int argc, char *argv[]) { (void)argc, (void)argv; std::unique_ptr<Node> ast(parseAST()); VariableStackBindings bindings; unsigned label_count = 0; ast->printAsm(bindings, label_count); return 0; }