Skip to content

Instantly share code, notes, and snippets.

@jaffa4
Created July 14, 2015 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaffa4/fc077b6ba4b62781b836 to your computer and use it in GitHub Desktop.
Save jaffa4/fc077b6ba4b62781b836 to your computer and use it in GitHub Desktop.
use Perl6::Grammar:from<NQP>;
use Perl6::Actions:from<NQP>;
use QRegex:from<NQP>;
my $tree := Perl6::Grammar.parse( "my \$b = 4;", :actions(Perl6::Actions.new()) );
my %visited_objects= ();
if (%visited_objects{$tree}.KEY-EXISTS)
{
}
note "end";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment