Author: leo
Date: Tue Aug 2 08:46:53 2005
New Revision: 8769
Added:
trunk/languages/lazy-k/cat.lazy (contents, props changed)
Modified:
trunk/MANIFEST
trunk/languages/lazy-k/lazy.pir
Log:
add cat.lazy - the shortest program Ive written ewwa
Modified: trunk/MANIFEST
==============================================================================
--- trunk/MANIFEST (original)
+++ trunk/MANIFEST Tue Aug 2 08:46:53 2005
@@ -1027,6 +1027,7 @@ languages/jako/t/assign.jako
languages/jako/t/data_decl.jako [jako]
languages/lazy-k/README [lazy-k]
languages/lazy-k/calc.lazy [lazy-k]
+languages/lazy-k/cat.lazy [lazy-k]
languages/lazy-k/lazy.pir [lazy-k]
languages/lazy-k/powers2.lazy [lazy-k]
languages/lazy-k/test.sh [lazy-k]
Added: trunk/languages/lazy-k/cat.lazy
==============================================================================
--- (empty file)
+++ trunk/languages/lazy-k/cat.lazy Tue Aug 2 08:46:53 2005
@@ -0,0 +1,7 @@
+# usage
+# $ ../../parrot lazy.pir cat.lazy < cat.lazy
+
+i
+
+# yep that's the whole progam
+# yes, there are faster programs that do the job :-)
Modified: trunk/languages/lazy-k/lazy.pir
==============================================================================
--- trunk/languages/lazy-k/lazy.pir (original)
+++ trunk/languages/lazy-k/lazy.pir Tue Aug 2 08:46:53 2005
@@ -225,7 +225,6 @@ not_k:
unless ch == 's' goto not_s
.return (S)
not_s:
-not_e:
unless ch == '#' goto not_comment
swallow:
ch = read io, 1