P6C::IMCC::ExtRegex::CodeGen
Subclass of Regex::CodeGen (found in languages/regex/lib) for generating code that requires Perl6-specific functionality.
Regex::CodeGen calls methods named output_X for every X generated by the rewriting phase (see P6C::IMCC::ExtRegex::Rewrite). Each method must return an array of PIR statements implementing the "operation" X.
output_X
X
Convert $atom to a string and store it in $dest.
Retrieve element $index of the aggregate $array and store it into $dest.
Compute the length of $array and store it into $dest.
Generate code for calling a subrule $rule_call within a regex tree ($rule_call is of type P6C::rx_call; see P6C::Nodes), passing $args as the arguments and getting back $results.
$args : [ <name, type, val> ] $results : [ <type, val> ]
Helper function for output_call_rule when calling a closure.
Helper function for output_call_rule when calling a named function.
To install Ruby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ruby
CPAN shell
perl -MCPAN -e shell install Ruby
For more information on module installation, please visit the detailed CPAN module installation guide.