-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.h
33 lines (26 loc) · 870 Bytes
/
types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef TYPES_H
#define TYPES_H
#include "metadata.h"
#include "token.h"
#include "object.h"
#include <variant>
#include <vector>
#include <optional>
#include <string>
#include <unordered_map>
namespace amps
{
using tokens = std::vector<token_t>;
using user_var = std::variant<number_t,
std::string,
std::vector<number_t>,
std::vector<std::string>,
std::unordered_map<std::string, number_t>,
std::unordered_map<std::string, std::string>>;
using table = std::unordered_map<std::string, var_t>;
using user_map = std::unordered_map<std::string, user_var>;
using object_t = vobject;
using object = std::optional<object_t>;
using objects = std::vector<object_t>;
}
#endif // TYPES_H