Files
scully/src/AST/BinOp.cpp
2013-06-01 17:00:39 +02:00

21 lines
317 B
C++

#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";
}
}