Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created August 31, 2013 21:09
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 jnthn/6400648 to your computer and use it in GitHub Desktop.
Save jnthn/6400648 to your computer and use it in GitHub Desktop.
use QASTNodesMoar;
# An op
my $op := QAST::Op.new();
$op.op('null');
$op.named('foo');
# An SVal
my $sval := QAST::SVal.new();
$sval.value('no lol');
$sval.named('foo');
# Another op...
my $op2 := QAST::Op.new();
$op2.op('null');
$op2.named('foo'); # BOOM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment