2019-06-11 17:24:28 -07:00
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace lily {
|
|
|
|
enum class binop {
|
|
|
|
add,
|
|
|
|
subtract,
|
|
|
|
times,
|
|
|
|
divide
|
|
|
|
};
|
|
|
|
|
|
|
|
static std::string op_supercombinator(binop op) {
|
|
|
|
switch(op) {
|
2019-06-11 17:53:22 -07:00
|
|
|
case binop::add: return "op_add";
|
|
|
|
case binop::subtract: return "op_sub";
|
|
|
|
case binop::times: return "op_times";
|
|
|
|
case binop::divide: return "op_divide";
|
2019-06-11 17:24:28 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|