Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added DESCRIPTION cps

  • Loading branch information...
commit 70d617f9555ea58f61a0671a8973be33825f46ac 1 parent e0a0a1e
@ayardley ayardley authored
Showing with 27 additions and 2 deletions.
  1. +17 −1 examples/past/01-sub.pir
  2. +10 −1 examples/past/four_plus_one.pir
View
18 examples/past/01-sub.pir
@@ -1,4 +1,20 @@
-# Copyright (C) 2006-2008, Parrot Foundation.
+# Copyright (C) 2006-2012, Parrot Foundation.
+
+=pod
+
+=head1 DESCRIPTION
+
+A PIR module to set up a PAST which, roughly, represents the following
+Perl 6 code:
+
+ sub foo
+ {
+ my $a = 4;
+ my $b = $a + 1;
+ say($b);
+ }
+
+=cut
=for doc
View
11 examples/past/four_plus_one.pir
@@ -1,4 +1,13 @@
-# Copyright (C) 2007-2009, Parrot Foundation.
+# Copyright (C) 2007-2012, Parrot Foundation.
+
+=pod
+
+=head1 DESCRIPTION
+
+A PIR module which sets up a PAST data structure to represent a sub
+and, then, execute it.
+
+=cut
# Set up a PAST data structure that represents a sub and run it.
Please sign in to comment.
Something went wrong with that request. Please try again.