aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/src/compiler_main.cpp
blob: 15276dd78790bb736d90d933802a7e077aa1e3b0 (plain)
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;
}