aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/node.hpp
blob: c00fa8f328bfd5f5f1fd5bcfe77c8dab26c22f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef NODE_HPP
#define NODE_HPP

#include <cstdint>
#include <map>
#include <string>

class Type;
class VariableStackBindings; 


// base node class
class Node
{
public:
    virtual ~Node() {}

    virtual void print() const = 0;
    virtual void printXml() const = 0;
    virtual VariableStackBindings printAsm(VariableStackBindings bindings, unsigned& label_count) const = 0;
};

    
#endif