diff options
-rw-r--r-- | tests/examplefiles/intro.ik | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/examplefiles/intro.ik b/tests/examplefiles/intro.ik new file mode 100644 index 00000000..03fcee39 --- /dev/null +++ b/tests/examplefiles/intro.ik @@ -0,0 +1,24 @@ +#!/usr/bin/ioke + +Ioke = LanguageExperiment with( + goal: :expressiveness, + data: as(code), + code: as(data), + features: [ + :dynamic, + :object_oriented, + :prototype_based, + :homoiconic, + :macros + ], + runtimes:(JVM, CLR), + inspirations: set(Io, Smalltalk, Ruby, Lisp) +) + +hello = method("Every example needs a hello world!", + name, + "hello, #{name}!" println) + +Ioke inspirations select( + features include?(:object_oriented) +) each(x, hello(x name)) |