This commit is contained in:
2013-06-01 17:00:39 +02:00
parent 6d2e40778c
commit c468356c57
7 changed files with 55 additions and 51 deletions

20
src/AST/BinOp.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include "AST/BinOp.h"
std::string binOpToString(BinOp op) {
switch (op) {
case BinOp::DIV:
return "/";
case BinOp::EQUALS:
return "==";
case BinOp::LESS:
return "<";
case BinOp::MINUS:
return "-";
case BinOp::PLUS:
return "+";
case BinOp::TIMES:
return "*";
default:
return "Unknown Op";
}
}