parrotcode: A compiler for Perl 1 | |
Contents | Language Implementations | Punie |
punie -- A compiler for Perl 1
$ ./parrot languages/punie/punie.pir script.p1
Punie is a compiler for Perl version 1, running on Parrot. Its parser is a PGE grammar (a subclass of PGE::Grammar). The compilation is a series of tree transformations using the Parrot compiler toolkit.
print 1;
print 45.5;
print "ok 1\n";
print 1 + 2, "\n", 2 + 3, "\n";
unless (1 - 1) {
print "a sum of nothing\n";
}
Copyright (C) 2005-2008, The Perl Foundation.
This is free software; you may redistribute it and/or modify it under the same terms as Parrot.
|