ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::expressions::detail::ASTBase Struct Reference

Description:

Base class for nodes of abstract syntax trees of module ALib Expressions. Note that AST objects (and their data) are allocated in a MonoAllocator and hence have empty destructors.

Definition at line 13 of file ast.inl.

Inheritance diagram for alib::expressions::detail::ASTBase:
[legend]

Public Type Index:

enum class  Types {
  Literal , Identifier , Function , UnaryOp ,
  BinaryOp , TernaryOp
}
 The type of node. More...
 

Public Field Index:

Types NodeType
 Type of derived this AST node.
 

Public Method Index:

 ASTBase (Types type)
 

Enumeration Details:

◆ Types

The type of node.

Enumerator
Literal 

A literal.

Identifier 

An identifier.

Function 

A function.

UnaryOp 

A unary operator.

BinaryOp 

A binary operator.

TernaryOp 

A ternary operator.

Definition at line 16 of file ast.inl.

Field Details:

◆ NodeType

Types alib::expressions::detail::ASTBase::NodeType

Type of derived this AST node.

Definition at line 27 of file ast.inl.

Constructor(s) / Destructor Details:

◆ ASTBase()

alib::expressions::detail::ASTBase::ASTBase ( Types type)
inline

Constructor

Parameters
typeThe node type.

Definition at line 31 of file ast.inl.


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