21 lines
409 B
C++
21 lines
409 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
namespace lily {
|
|
enum class binop {
|
|
add,
|
|
subtract,
|
|
times,
|
|
divide
|
|
};
|
|
|
|
static std::string op_supercombinator(binop op) {
|
|
switch(op) {
|
|
case binop::add: return "+";
|
|
case binop::subtract: return "-";
|
|
case binop::times: return "*";
|
|
case binop::divide: return "/";
|
|
}
|
|
}
|
|
};
|