Stub bitcode emitter.

This commit is contained in:
Stefano Sanfilippo 2015-03-05 14:26:24 +01:00
parent 82b63189f4
commit c55e25e2a2
2 changed files with 214 additions and 0 deletions

141
BitcodeEmitter.cpp Normal file
View File

@ -0,0 +1,141 @@
/*
* Monicelli: an esoteric language compiler
*
* Copyright (C) 2014 Stefano Sanfilippo
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "BitcodeEmitter.hpp"
using namespace monicelli;
void BitcodeEmitter::emit(Id const& node) {
}
void BitcodeEmitter::emit(Integer const& node) {
}
void BitcodeEmitter::emit(Float const& node) {
}
void BitcodeEmitter::emit(Return const& node) {
}
void BitcodeEmitter::emit(Loop const& node) {
}
void BitcodeEmitter::emit(VarDeclaration const& node) {
}
void BitcodeEmitter::emit(Assignment const& node) {
}
void BitcodeEmitter::emit(Print const& node) {
}
void BitcodeEmitter::emit(Input const& node) {
}
void BitcodeEmitter::emit(Abort const& node) {
}
void BitcodeEmitter::emit(Assert const& node) {
}
void BitcodeEmitter::emit(FunctionCall const& node) {
}
void BitcodeEmitter::emit(BranchCase const& node) {
}
void BitcodeEmitter::emit(Branch const& node) {
}
void BitcodeEmitter::emit(Main const& node) {
}
void BitcodeEmitter::emit(Function const& node) {
}
void BitcodeEmitter::emit(Module const& node) {
}
void BitcodeEmitter::emit(Program const& node) {
}
void BitcodeEmitter::emit(ExpLt const& node) {
}
void BitcodeEmitter::emit(ExpGt const& node) {
}
void BitcodeEmitter::emit(ExpLte const& node) {
}
void BitcodeEmitter::emit(ExpGte const& node) {
}
void BitcodeEmitter::emit(ExpPlus const& node) {
}
void BitcodeEmitter::emit(ExpMinus const& node) {
}
void BitcodeEmitter::emit(ExpTimes const& node) {
}
void BitcodeEmitter::emit(ExpDiv const& node) {
}
void BitcodeEmitter::emit(ExpShl const& node) {
}
void BitcodeEmitter::emit(ExpShr const& node) {
}
void BitcodeEmitter::emit(SemiExpEq const& node) {
}
void BitcodeEmitter::emit(SemiExpLt const& node) {
}
void BitcodeEmitter::emit(SemiExpGt const& node) {
}
void BitcodeEmitter::emit(SemiExpLte const& node) {
}
void BitcodeEmitter::emit(SemiExpGte const& node) {
}
void BitcodeEmitter::emit(SemiExpPlus const& node) {
}
void BitcodeEmitter::emit(SemiExpMinus const& node) {
}
void BitcodeEmitter::emit(SemiExpTimes const& node) {
}
void BitcodeEmitter::emit(SemiExpDiv const& node) {
}
void BitcodeEmitter::emit(SemiExpShl const& node) {
}
void BitcodeEmitter::emit(SemiExpShr const& node) {
}

73
BitcodeEmitter.hpp Normal file
View File

@ -0,0 +1,73 @@
#ifndef BITCODE_HPP
#define BITCODE_HPP
/*
* Monicelli: an esoteric language compiler
*
* Copyright (C) 2014 Stefano Sanfilippo
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Emitter.hpp"
namespace monicelli {
class BitcodeEmitter: public Emitter {
public:
virtual void emit(Id const&) override;
virtual void emit(Integer const&) override;
virtual void emit(Float const&) override;
virtual void emit(Return const&) override;
virtual void emit(Loop const&) override;
virtual void emit(VarDeclaration const&) override;
virtual void emit(Assignment const&) override;
virtual void emit(Print const&) override;
virtual void emit(Input const&) override;
virtual void emit(Abort const&) override;
virtual void emit(Assert const&) override;
virtual void emit(FunctionCall const&) override;
virtual void emit(BranchCase const&) override;
virtual void emit(Branch const&) override;
virtual void emit(Main const&) override;
virtual void emit(Function const&) override;
virtual void emit(Module const&) override;
virtual void emit(Program const&) override;
virtual void emit(ExpLt const&) override;
virtual void emit(ExpGt const&) override;
virtual void emit(ExpLte const&) override;
virtual void emit(ExpGte const&) override;
virtual void emit(ExpPlus const&) override;
virtual void emit(ExpMinus const&) override;
virtual void emit(ExpTimes const&) override;
virtual void emit(ExpDiv const&) override;
virtual void emit(ExpShl const&) override;
virtual void emit(ExpShr const&) override;
virtual void emit(SemiExpEq const&) override;
virtual void emit(SemiExpLt const&) override;
virtual void emit(SemiExpGt const&) override;
virtual void emit(SemiExpLte const&) override;
virtual void emit(SemiExpGte const&) override;
virtual void emit(SemiExpPlus const&) override;
virtual void emit(SemiExpMinus const&) override;
virtual void emit(SemiExpTimes const&) override;
virtual void emit(SemiExpDiv const&) override;
virtual void emit(SemiExpShl const&) override;
virtual void emit(SemiExpShr const&) override;
};
}
#endif