ht's Scheme Interpreter  1.0
a simplified scheme interpreter implementation
ops.hpp
Go to the documentation of this file.
1 #ifndef __SCHEME_TYPES_OPS
2 #define __SCHEME_TYPES_OPS
3 #include <string>
4 #include "arch.hpp"
5 bool isOpPlus(const std::string& token) { return token == "+"; }
6 bool isOpMinus(const std::string& token) { return token == "-"; }
7 bool isOpMultiply(const std::string& token) { return token == "*"; }
8 bool isOpDevide(const std::string& token) { return token == "/"; }
9 #endif
bool isOpPlus(const std::string &token)
Definition: ops.hpp:5
bool isOpMinus(const std::string &token)
Definition: ops.hpp:6
bool isOpDevide(const std::string &token)
Definition: ops.hpp:8
bool isOpMultiply(const std::string &token)
Definition: ops.hpp:7