Impulse Graph C++ Engine 2.4.0
High-Performance Zero-Copy C-ABI Kernel and C++20 Fluent VM Engine
Loading...
Searching...
No Matches
impulse::cel::AstNode Struct Reference

#include <impulse_cel.h>

Static Public Member Functions

static std::shared_ptr< AstNode > make_int (int64_t v)
static std::shared_ptr< AstNode > make_float (double v)
static std::shared_ptr< AstNode > make_bool (bool v)
static std::shared_ptr< AstNode > make_string (std::string v)
static std::shared_ptr< AstNode > make_ident (std::string name)
static std::shared_ptr< AstNode > make_member (std::shared_ptr< AstNode > target, std::string field)
static std::shared_ptr< AstNode > make_unary (std::string op, std::shared_ptr< AstNode > operand)
static std::shared_ptr< AstNode > make_binary (std::string op, std::shared_ptr< AstNode > lhs, std::shared_ptr< AstNode > rhs)
static std::shared_ptr< AstNode > make_ternary (std::shared_ptr< AstNode > cond, std::shared_ptr< AstNode > then_branch, std::shared_ptr< AstNode > else_branch)
static std::shared_ptr< AstNode > make_call (std::string func, std::vector< std::shared_ptr< AstNode > > args)
static std::shared_ptr< AstNode > make_list (std::vector< std::shared_ptr< AstNode > > elements)

Public Attributes

AstKind kind
std::string text
int64_t int_val = 0
double float_val = 0.0
bool bool_val = false
std::string str_val
std::vector< std::shared_ptr< AstNode > > children

Member Function Documentation

◆ make_binary()

std::shared_ptr< AstNode > impulse::cel::AstNode::make_binary ( std::string op,
std::shared_ptr< AstNode > lhs,
std::shared_ptr< AstNode > rhs )
inlinestatic

◆ make_bool()

std::shared_ptr< AstNode > impulse::cel::AstNode::make_bool ( bool v)
inlinestatic

◆ make_call()

std::shared_ptr< AstNode > impulse::cel::AstNode::make_call ( std::string func,
std::vector< std::shared_ptr< AstNode > > args )
inlinestatic

◆ make_float()

std::shared_ptr< AstNode > impulse::cel::AstNode::make_float ( double v)
inlinestatic

◆ make_ident()

std::shared_ptr< AstNode > impulse::cel::AstNode::make_ident ( std::string name)
inlinestatic

◆ make_int()

std::shared_ptr< AstNode > impulse::cel::AstNode::make_int ( int64_t v)
inlinestatic

◆ make_list()

std::shared_ptr< AstNode > impulse::cel::AstNode::make_list ( std::vector< std::shared_ptr< AstNode > > elements)
inlinestatic

◆ make_member()

std::shared_ptr< AstNode > impulse::cel::AstNode::make_member ( std::shared_ptr< AstNode > target,
std::string field )
inlinestatic

◆ make_string()

std::shared_ptr< AstNode > impulse::cel::AstNode::make_string ( std::string v)
inlinestatic

◆ make_ternary()

std::shared_ptr< AstNode > impulse::cel::AstNode::make_ternary ( std::shared_ptr< AstNode > cond,
std::shared_ptr< AstNode > then_branch,
std::shared_ptr< AstNode > else_branch )
inlinestatic

◆ make_unary()

std::shared_ptr< AstNode > impulse::cel::AstNode::make_unary ( std::string op,
std::shared_ptr< AstNode > operand )
inlinestatic

Member Data Documentation

◆ bool_val

bool impulse::cel::AstNode::bool_val = false

◆ children

std::vector<std::shared_ptr<AstNode> > impulse::cel::AstNode::children

◆ float_val

double impulse::cel::AstNode::float_val = 0.0

◆ int_val

int64_t impulse::cel::AstNode::int_val = 0

◆ kind

AstKind impulse::cel::AstNode::kind

◆ str_val

std::string impulse::cel::AstNode::str_val

◆ text

std::string impulse::cel::AstNode::text

The documentation for this struct was generated from the following file: