Skip to content

Instantly share code, notes, and snippets.

@pmichaud
Created June 22, 2012 03:06
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 pmichaud/2969947 to your computer and use it in GitHub Desktop.
Save pmichaud/2969947 to your computer and use it in GitHub Desktop.
pmichaud@kiwi:~/p6/rakudo$ cat y.pir
.sub 'main'
$S0 = 'hello'
$P0 = split '', $S0
loop:
unless $P0 goto done
$S0 = shift $P0
say $S0
goto loop
done:
.end
pmichaud@kiwi:~/p6/rakudo$ install/bin/parrot y.pir
h
e
l
l
o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment