Gymbo

Public Attributes | List of all members
gymbo::Node Struct Reference

Structure representing a node in the Abstract Syntax Tree (AST). More...

`#include <parser.h>`

Collaboration diagram for gymbo::Node:
[legend]

## Public Attributes
NodeKind | kind
| Node kind. More...
Node * | lhs
| Left-hand side. More...
Node * | rhs
| Right-hand side. More...
Node * | cond
| Condition. More...
Node * | then
| 'Then' branch More...
Node * | els
| 'Else' branch More...
std::vector< Node * > | blocks
| Vector of child blocks. More...
float | val
| Used if kind is ND_NUM. More...
int | offset
| Offset. More...

## Detailed Description

Structure representing a node in the Abstract Syntax Tree (AST).

## Member Data Documentation

## ◆ blocks

std::vector<Node *> gymbo::Node::blocks

Vector of child blocks.

## ◆ cond

Node* gymbo::Node::cond

Condition.

## ◆ els

Node* gymbo::Node::els

'Else' branch

## ◆ kind

NodeKind gymbo::Node::kind

Node kind.

## ◆ lhs

Node* gymbo::Node::lhs

Left-hand side.

## ◆ offset

int gymbo::Node::offset

Offset.

## ◆ rhs

Node* gymbo::Node::rhs

Right-hand side.

## ◆ then

Node* gymbo::Node::then

'Then' branch

## ◆ val

float gymbo::Node::val

Used if kind is ND_NUM.

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

- libgymbo/parser.h