Class: AstPrinter

AstPrinter

Traverses a collection of ASTs and converts each node to a printable string. Used mainly for testing purposes.

Constructor

new AstPrinter()

Source:

Methods

print(statements) → {string}

Converts a collection of ASTs into strings and prints them to the console.

Parameters:
Name Type Description
statements Array.<Statement>

Collection of ASTs to print.

Source:
Returns:

String representing the collection of ASTs.

Type
string