Hi, is that any possible?
I tried the example from web (0.9.1. release notes) with booish and
this is the result
CONSOLE
Welcome to booish, an interactive interpreter for the boo programming
language.
Running boo 0.9.2.3383 on CLR 2.0.50727.3603.
Enter boo code in the prompt below (or type /help).
>>>macro repeatLines(repeatCount as int, lines as string*):
... for line in lines:
... for i in range(repeatCount):
... print line
...
----^
ERROR: Unknown identifier: 'match'.
----^
ERROR: Unknown identifier: 'case'.
----------------------^
ERROR: Unknown identifier: 'repeatCount'.
----^
ERROR: Unknown identifier: '_'.
----^
ERROR: Target of explode expression must be an array.
-----------------------------------^
ERROR: Unknown identifier: 'repeatCount'.
----^
ERROR: Unknown identifier: 'otherwise'.
ENDCONSOLE
Similar trouble, when passing the macro code to
InteractiveInterpreter2.Eval() (newlines and tabs are used in the
passed string to indent the same way as above)
input12(1,1): BCE0005: Boo.Lang.Compiler.CompilerError: Unknown
identifier: 'macro'.
input12(1,7): BCE0005: Boo.Lang.Compiler.CompilerError: Unknown
identifier: 'repeatLines'.
input12(1,19): BCE0005: Boo.Lang.Compiler.CompilerError: Unknown
identifier: 'repeatCount'.
input12(1,34): BCE0006: Boo.Lang.Compiler.CompilerError: 'int' is a
value type. The 'as' operator can only be used with reference types.
input12(1,39): BCE0005: Boo.Lang.Compiler.CompilerError: Unknown
identifier: 'lines'.
input12(2,17): BCE0005: Boo.Lang.Compiler.CompilerError: Unknown
identifier: 'lines'.
input12(3,24): BCE0005: Boo.Lang.Compiler.CompilerError: Unknown
identifier: 'repeatCount'.
To make the second approach function (using Eval()) would be awesome.
Thanks