upd: first version of atom

This commit is contained in:
2023-11-09 09:40:43 +08:00
parent a2a8c45af1
commit cfdc5e5a1c
5 changed files with 169 additions and 14 deletions

View File

@ -2,8 +2,13 @@
#define UTILS_H
#include <any>
#include <exception>
#include <iomanip>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
#include "int2048/int2048.h"
class InterpretException : public std::exception {
public:
InterpretException() {}
@ -38,4 +43,15 @@ struct FlowType {
};
struct NoneType {};
ZYM::int2048 Any2Int(const std::any &value);
double Any2Float(const std::any &value);
std::string Any2String(const std::any &value);
bool Any2Bool(const std::any &value);
struct RawVarible {
std::string name;
RawVarible() {}
RawVarible(const std::string &name) : name(name) {}
};
#endif