2020-09-08 18:38:05 -07:00
|
|
|
#pragma once
|
2020-09-15 18:51:28 -07:00
|
|
|
#include <array>
|
2020-09-08 18:38:05 -07:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
enum binop {
|
|
|
|
PLUS,
|
|
|
|
MINUS,
|
|
|
|
TIMES,
|
2020-09-10 12:44:41 -07:00
|
|
|
DIVIDE,
|
|
|
|
MODULO,
|
|
|
|
EQUALS,
|
|
|
|
LESS_EQUALS,
|
2020-09-08 18:38:05 -07:00
|
|
|
};
|
|
|
|
|
2020-09-15 18:51:28 -07:00
|
|
|
constexpr binop all_binops[] = {
|
|
|
|
PLUS, MINUS, TIMES, DIVIDE, MODULO,
|
|
|
|
EQUALS, LESS_EQUALS
|
|
|
|
};
|
|
|
|
|
2020-09-08 18:38:05 -07:00
|
|
|
std::string op_name(binop op);
|
|
|
|
std::string op_action(binop op);
|