blob: 11fa66ea4ebb11ecc3697748637a029d4c39be55 (
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
25
26
27
28
29
30
31
32
33
34
|
#include "expression.hpp"
#include <iostream>
// Expression definition
void Expression::print() const
{}
void Expression::printxml() const
{}
// Identifier definition
Identifier::Identifier(const std::string& id)
: m_id(id)
{}
void Identifier::printasm(VariableStackBindings bindings) const
{}
// Constant definition
Constant::Constant(const int32_t& constant)
: m_constant(constant)
{}
void Constant::printasm(VariableStackBindings bindings) const
{
std::cout << "\tli\t$2," << m_constant << std::endl;
}
|