Perl6

ANTLR4::Actions::Perl6

ANTLR4::Actions::Perl6 generates a Raku representation of an ANTLR4 AST.

Synopsis

use ANTLR4::Actions::Perl6;
    use ANTLR4::Grammar;
    my $p = ANTLR4::Actions::Perl6.new;
say $p.parse('grammar Minimal { identifier : [A-Z][A-Za-z]+ ; }', :actions($p)).ast;
    say $p.parsefile('ECMAScript.g4', :actions($p)).ast;

Documentation

The action in this file will return a string containing a rough Raku translation of the ANTLR4 grammar that the module has been given to parse.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.