Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Commit

Permalink
Hello World in Monkey
Browse files Browse the repository at this point in the history
  • Loading branch information
SCKelemen committed Oct 16, 2018
1 parent 63be2e3 commit cfa45e6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Monkey/Hello.monkey
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// The Monkey Programming Language: https://interpreterbook.com/

let newGreeter = fn(greeting) {
return fn(name) { puts(greeting + " " + name); } // not sure if this supports interpolation, builders, or interning
};

// `hello` is a greeter function that says "Hello"
let hello = newGreeter("Hello");

hello("Hacktoberfest!");

0 comments on commit cfa45e6

Please sign in to comment.