Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add some basic NQP examples

  • Loading branch information...
commit 2bd89cde579c9e539ade9044462aa031ddc2b7a5 1 parent da7048b
@leto leto authored
View
3  examples/hello_world.nqp
@@ -0,0 +1,3 @@
+#!nqp
+
+say("Hello, awesome Not Quite Perl 6 World!");
View
4 examples/load_bytecode.nqp
@@ -0,0 +1,4 @@
+#!nqp
+
+pir::load_bytecode('PGE.pbc');
+say("Loaded Parrot Grammar Engine");
View
8 examples/loops.nqp
@@ -0,0 +1,8 @@
+#! nqp
+# Example of a while loop
+
+my $i := 0;
+while( $i < 10 ) {
+ say("i=$i");
+ $i++;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.