Basic arithmetic and jump labels
This commit is contained in:
19
include/token/operandtype.hpp
Normal file
19
include/token/operandtype.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
namespace Token
|
||||
{
|
||||
enum class OperandType
|
||||
{
|
||||
Unknown = -1,
|
||||
AddInteger = 0,
|
||||
SubtractInteger,
|
||||
DivideInteger,
|
||||
MultiplyInteger,
|
||||
ShiftIntegerLeft,
|
||||
ShiftIntegerRight,
|
||||
Jump
|
||||
};
|
||||
|
||||
OperandType GetOperandType(std::string const & op);
|
||||
}
|
||||
Reference in New Issue
Block a user