Руслан У. Закиров > MarpaX-Repa-0.04 > MarpaX::Repa::Actions

Download:
MarpaX-Repa-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: MarpaX-Repa-0.10

NAME ^

MarpaX::Repa::Actions - set of actions to begin with

DESCRIPTION ^

Some actions to start with that just present rules as various perl structures. Just to help you concentrate on grammar at the beginning.

METHODS ^

new

Just returns a new hash based instance of the class. See 'action_object' in Marpa::R2::Grammar.

do_what_I_mean

Returns:

    { rule => 'rule name', value => $child || \@children }

do_join_children

Returns:

    { rule => 'rule name', value => join '', @children }

do_join

Returns:

    join '', @children

do_list

Returns:

    \@children

do_scalar_or_list

Returns:

    $child || \@children

do_ignore

Returns:

    undef
syntax highlighting: