Author: allison Date: Mon Feb 20 22:28:22 2006 New Revision: 11693 Modified: trunk/ (props changed) trunk/languages/punie/README trunk/languages/punie/punie.pir Log: Update punie docs.
Modified: trunk/languages/punie/README ============================================================================== --- trunk/languages/punie/README (original) +++ trunk/languages/punie/README Mon Feb 20 22:28:22 2006 @@ -1,7 +1,7 @@ -This is Punie, version 0.0.1 +This is Punie, version 0.1.0 ----------------------------- -Punie is Copyright (C) 2005 The Perl Foundation. +Punie is Copyright (C) 2005-2006, The Perl Foundation. LICENSE INFORMATION ------------------- @@ -39,4 +39,4 @@ Compile Punie to bytecode and run its te Run the Punie compiler via Parrot, passing it the path to a Perl 1 source file as the only argument: - $ ../../parrot punie.pbc demo.p1 + $ ./parrot languages/punie/punie.pbc demo.p1 Modified: trunk/languages/punie/punie.pir ============================================================================== --- trunk/languages/punie/punie.pir (original) +++ trunk/languages/punie/punie.pir Mon Feb 20 22:28:22 2006 @@ -4,7 +4,7 @@ punie -- A compiler for Perl 1 =head1 SYNOPSIS - $ ../../parrot punie.pir script.p1 + $ ./parrot languages/punie/punie.pir script.p1 =head1 DESCRIPTION @@ -17,12 +17,17 @@ compiler, see: http://svn.lohutok.net/nam/trunk/parrot/docs/compiler_tools.pod -Punie currently only parses and compiles a series of statements to print -integers or double-quoted strings, in the form of: +So far, Punie handles constants (strings, integers, floats), print +statements, conditionals, do blocks, comma lists, and some basic math +and logic ops. print 1; - print 45; + print 45.5; print "ok 1\n"; + print 1 + 2, "\n", 2 + 3, "\n"; + unless (1 - 1) { + print "a sum of nothing\n"; + } =cut
