Skip to content

Instantly share code, notes, and snippets.

@peschwa
Created October 4, 2015 10:48
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 peschwa/f07328a66ecaecb470bb to your computer and use it in GitHub Desktop.
Save peschwa/f07328a66ecaecb470bb to your computer and use it in GitHub Desktop.
psch@hack:~/rakudo/rakudo/install/bin$ DEBUG_PLS=1 ./perl6 -e'constant a = "µ"; sub infix:[a] { say $^a, $^b }; 5 µ 5'
n2s ast:
- QAST::WVal(Str) a
cf: [a]
cf<circumfix>: [a]
cf<circumfix><nibble>:
cf<circumfix><semilist>: a
n2s ast:
- QAST::WVal(Str) a
55
psch@hack:~/rakudo/rakudo/install/bin$ DEBUG_PLS=1 ./perl6 -e'constant $a = "µ"; sub infix:[$a] { say $^a, $^b }; 5 µ 5'
n2s ast:
- QAST::Var(lexical $a) $a
cf: [$a]
cf<circumfix>: [$a]
cf<circumfix><nibble>:
cf<circumfix><semilist>: $a
n2s ast:
- QAST::Var(lexical $a) $a
===SORRY!===
Cannot find method 'postcircumfix:<( )>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment