mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Macros
Sema.cpp File Reference
#include "parse/Sema.hpp"
#include <cstdint>
#include <mutable/catalog/Catalog.hpp>
#include <mutable/io/Reader.hpp>
#include <mutable/Options.hpp>
#include <sstream>
#include <unordered_map>
Include dependency graph for Sema.cpp:

Go to the source code of this file.

Macros

#define SET_CHAR(NAME)
 

Macro Definition Documentation

◆ SET_CHAR

#define SET_CHAR (   NAME)
Value:
if (s.NAME) { \
std::string NAME = interpret(*s.NAME.text); \
if (NAME.length() == 1) \
cfg.NAME = NAME[0]; \
else \
diag.e(s.NAME.pos) << "Invalid " #NAME " character " << s.NAME.text << ". Must have length 1.\n"; \
}
std::string interpret(const std::string &str, char esc='\\', char quote='"')
Definition: fn.hpp:319