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.

ANTLR4::Grammar v0.6.3

Turn ANTLR4 Grammars into Raku Grammars

Authors

  • Jeffrey Goff

License

Artistic-2.0

Dependencies

JSON::Tiny

Test Dependencies

Provides

  • ANTLR4::Actions::Perl6
  • ANTLR4::Grammar
  • ANTLR4::Grammar::Parser

Documentation

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