Skip to content

Instantly share code, notes, and snippets.

@er2
Created March 27, 2016 22:42
Show Gist options
  • Save er2/34cb1d4a7c342dcd59f5 to your computer and use it in GitHub Desktop.
Save er2/34cb1d4a7c342dcd59f5 to your computer and use it in GitHub Desktop.
get perl 6 ast
use Perl6::Grammar;
my $input = slurp @*ARGS[0].IO;
# say $input;
my $ast = Perl6::Grammar.parse($input).ast;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment