diff options
author | thatch <devnull@localhost> | 2010-05-05 17:25:34 -0700 |
---|---|---|
committer | thatch <devnull@localhost> | 2010-05-05 17:25:34 -0700 |
commit | d24ec36b2e3c7a26d5bc81144eeae5729174c07f (patch) | |
tree | 498dd9792e9516406a325760003931cd6f37c6f3 | |
parent | 6426fe5b0c767fff57d7734ec0f35f533abafdab (diff) | |
download | pygments-d24ec36b2e3c7a26d5bc81144eeae5729174c07f.tar.gz |
Add Ioke test file
-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)) |