libs/metattache.rb

Return to the index.

Table of Contents

Function count: 4

Click on genres to show all functions in that genre.

(parsing)AST, Shunt, Tokenize, Traverse

AST[string text] → [hash] (parsing)

Returns an Abstract Syntax Tree representing the operator structure of text in Attache.

Shunt[string text] → [token] (parsing)

Returns the Shunting Yard algorithm performed on the tokens of text.

Tokenize[string text] → [token] (parsing)

Returns the tokens of text.

Traverse[[tree] nodes, **opts] → [(*)] (parsing)

Iterates over nodes using the options given by opts