topazc
semantic.cpp File Reference

semantic.hpp implementation More...

#include "../../include/exception/exception.hpp"
#include "../../include/semantic/semantic.hpp"
#include "../../include/parser/parser.hpp"
#include "../../include/lexer/lexer.hpp"
#include <algorithm>
#include <climits>
#include <fstream>
Include dependency graph for semantic.cpp:

Go to the source code of this file.

Macros

#define VALUE(op, type)
#define VALUE(op, needed_type)
#define VALUE(type)

Detailed Description

semantic.hpp implementation

Definition in file semantic.cpp.

Macro Definition Documentation

◆ VALUE [1/3]

#define VALUE ( op,
needed_type )
Value:
Value(type, static_cast<needed_type>(unary_two_variants(val, op, ue.line)), val.is_value_unknown, val.is_literal)

◆ VALUE [2/3]

#define VALUE ( op,
type )
Value:
Value(output_type, static_cast<type>(binary_two_variants(left_val, right_val, op, be.line)), left_val.is_value_unknown || right_val.is_value_unknown, left_val.is_literal && right_val.is_literal)

◆ VALUE [3/3]

#define VALUE ( type)
Value:
static_cast<type>(val_from_variant)