Farkle


AST Module

Functions to work with `AST`s.

Functions and values

Function or value Description

AST.simplify x

Full Usage: AST.simplify x

Parameters:
Returns: AST

Simplifies an `AST` in the same fashion with GOLD Parser's "trim reductions" option.

x : AST
Returns: AST

AST.toASCIITree x

Full Usage: AST.toASCIITree x

Parameters:
Returns: string

Visualizes an `AST` in the form of a textual "parse tree".

x : AST
Returns: string