Properties

$indentation

$indentation

$source

$source

$vars

$vars

Methods

visit()

visit(array  $ast, string  $fnName, string  $expr) : string

Parameters

array $ast

AST to compile.

string $fnName

The name of the function to generate.

string $expr

Expression being compiled.

Returns

string —

dispatch()

dispatch(array  $node) : mixed

Parameters

array $node

Returns

mixed —

makeVar()

makeVar(string  $prefix) : string

Creates a monotonically incrementing unique variable name by prefix.

Parameters

string $prefix

Variable name prefix

Returns

string —

write()

write(string  $str) : $this

Writes the given line of source code. Pass positional arguments to write that match the format of sprintf.

Parameters

string $str

String to write

Returns

$this —

outdent()

outdent() : $this

Decreases the indentation level of code being written

Returns

$this —

indent()

indent() : $this

Increases the indentation level of code being written

Returns

$this —

visit_or()

visit_or(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_and()

visit_and(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_not()

visit_not(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_subexpression()

visit_subexpression(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_field()

visit_field(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_index()

visit_index(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_literal()

visit_literal(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_pipe()

visit_pipe(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_multi_select_list()

visit_multi_select_list(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_multi_select_hash()

visit_multi_select_hash(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_function()

visit_function(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_slice()

visit_slice(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_current()

visit_current(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_expref()

visit_expref(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_flatten()

visit_flatten(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_projection()

visit_projection(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_condition()

visit_condition(array  $node) : mixed

Parameters

array $node

Returns

mixed —

visit_comparator()

visit_comparator(array  $node) : mixed

Parameters

array $node

Returns

mixed —