Message-ID: <349320234.42367.1371717889173.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_42366_870667156.1371717889172" ------=_Part_42366_870667156.1371717889172 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Using the Boo.Lang.Interpreter API is quite straightforward. You= can expose values to the scripting environment through the SetValu= e call and you can read values from the scripting environment with= the GetValue call. The Eval call allows you to execute ar= bitraly complex source code:
You can also use InteractiveInterpreter as an expression evaluator by se= tting RememberLastValue:
A nice trick is to provide code completion in a GUI application by lever= aging InteractiveInterpreter.SuggestCodeCompletion:
entity is a reference to the Boo.Lang.Compiler.TypeSyst= em.IEntity object found as the target of the codeco= mplete member.
Exposing code from an arbitrary assembly (let's say the current executin= g one) to the interactive interpreter instance is done through the = References collection:
A more complete example of a script which callbacks to the precompiled c= ode:------=_Part_42366_870667156.1371717889172--