ChaiScript
|
Struct that doubles as both a parser ast_node and an AST node. More...
#include <chaiscript_common.hpp>
Public Member Functions | |
const std::string & | filename () const noexcept |
const File_Position & | start () const noexcept |
const File_Position & | end () const noexcept |
std::string | pretty_print () const |
virtual std::vector< std::reference_wrapper< AST_Node > > | get_children () const =0 |
virtual Boxed_Value | eval (const chaiscript::detail::Dispatch_State &t_e) const =0 |
std::string | to_string (const std::string &t_prepend="") const |
Prints the contents of an AST node, including its children, recursively. | |
AST_Node (AST_Node &&)=default | |
AST_Node & | operator= (AST_Node &&)=delete |
AST_Node (const AST_Node &)=delete | |
AST_Node & | operator= (const AST_Node &)=delete |
Static Public Member Functions | |
static bool | get_bool_condition (const Boxed_Value &t_bv, const chaiscript::detail::Dispatch_State &t_ss) |
Public Attributes | |
const AST_Node_Type | identifier |
const std::string | text |
Parse_Location | location |
Protected Member Functions | |
AST_Node (std::string t_ast_node_text, AST_Node_Type t_id, Parse_Location t_loc) | |
Struct that doubles as both a parser ast_node and an AST node.