ASTNode: A Node in an Abstract Syntax Tree (AST)

Description Usage Format Fields Methods

Description

This is the root R6 class of any term of the AST which is created when parsing a table formula. This should only be used as a base class as the class information carries the semantic meaning of a given node.

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Fields

symbol

A string which tells what this node in the AST represents.

value

A string of addtional information contained by the node.

Methods

terms()

Returns the node itself

distribute()

Applies the distributive property to the node, and returns the resulting node.

string()

Returns the string formula of the node

reduce(data)

Given a set of data, perform the logical reduction of the current node.


tangram documentation built on June 5, 2018, 1:04 a.m.