From ecfa21dd5a107e8a8d05c36ca2a2c4a018e383a5 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 13 May 2018 20:40:21 -0700 Subject: 4245 - fix example1.mu to actually run Thanks mahmudov on freenode IRC for the feedback! This was an embarrassing oversight right at the top of my Readme. --- example1.mu | 4 +++- html/example1.mu.html | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/example1.mu b/example1.mu index aebf22ba..83995a1e 100644 --- a/example1.mu +++ b/example1.mu @@ -1,5 +1,7 @@ -def example1 [ +def main [ local-scope a:num <- add 2, 2 a <- multiply a, 3 + # uncomment the next line to see the output +# $print a ] diff --git a/html/example1.mu.html b/html/example1.mu.html index 2ff1fd66..35320c38 100644 --- a/html/example1.mu.html +++ b/html/example1.mu.html @@ -19,6 +19,8 @@ a:hover { text-decoration: underline; } .Special { color: #c00000; } .Constant { color: #00a0a0; } .LineNr { color: #444444; } +.Comment { color: #9090ff; } +.Comment a { color:#0000ee; text-decoration:underline; } --> @@ -53,11 +55,13 @@ if ('onhashchange' in window) {
-1 def example1 [
+1 def main [
 2   local-scope
 3   a:num <- add 2, 2
 4   a <- multiply a, 3
-5 ]
+5   # uncomment the next line to see the output
+6 # $print a
+7 ]
 
-- cgit 1.4.1-2-gfad0