qscript.compiler.ast

Contains definitions for "nodes" making the AST

Members

Structs

ArrayNode
struct ArrayNode

stores array, for example, [0, 1, x, y] will be stored using this

AssignmentNode
struct AssignmentNode

to store assignment statements

BlockNode
struct BlockNode

a node representing a "set-of-statements" AKA a "block"

CodeNode
struct CodeNode

a node to represent code that evaluates to some data.

DoWhileNode
struct DoWhileNode

to store do-while statements

EnumNode
struct EnumNode

To store a enum definition

ForNode
struct ForNode

to store for loop statements

FunctionCallNode
struct FunctionCallNode

to store functionCall nodes

FunctionNode
struct FunctionNode

a node representing a function definition

IfNode
struct IfNode

to store if statements

LiteralNode
struct LiteralNode

stores literal data, i.e data that was availabe at runtime. Can store strings, double, integer, but arrays (even ones without variables, only literals) are stored in ArrayNode

MemberSelectorNode
struct MemberSelectorNode

to store a member selection (someStructOrEnum.memberName)

NegativeValueNode
struct NegativeValueNode

stores -x

OperatorNode
struct OperatorNode

stores an operator with two operands

ReadElement
struct ReadElement

stores an "array-read" (instruction readElement or for string, readChar)

ReturnNode
struct ReturnNode
Undocumented in source.
SOperatorNode
struct SOperatorNode

stores an operator with single operand (like ! and @)

ScriptNode
struct ScriptNode

a node representing the script

StatementNode
struct StatementNode

a node representing statements, including: if, while, function-call..

StructNode
struct StructNode

To store a struct definition

VarDeclareNode
struct VarDeclareNode

to store var declaration

VariableNode
struct VariableNode

stores a variable

WhileNode
struct WhileNode

to store while statements

Meta