diff samples/fib.tp @ 44:9dd370530f69

Fix escape codes in string literals. Don't print out the return value of main method. Fixup fib example to use print: method. Cleanup error handling in compiler slightly
author Mike Pavone <pavone@retrodev.com>
date Thu, 12 Jul 2012 22:49:08 -0700
parents 02b20292f187
children 3a169ebb3224
line wrap: on
line diff
--- a/samples/fib.tp	Thu Jul 12 22:10:58 2012 -0700
+++ b/samples/fib.tp	Thu Jul 12 22:49:08 2012 -0700
@@ -1,9 +1,4 @@
 #{
-
-console <- foreign: #{
-	log <- foreign: :val {}
-}
-
 true <- #{
   if:else <- :self trueblock :elseblock {
     trueblock:
@@ -25,7 +20,7 @@
 }
 
 main <- {
-  console log: (fib: 30)
+  print: (string: (fib: 30)) . "\n"
 }
 
 }