Of course you can always compile your code to an .exe and run it as any other CLI program. But this section is all about running boo programs directly from memory.
booi utility
booi examples/HelloWorld.boo
To execute a script read directly from stdin:
booi -
booc utility
boo nant task
<boo> print("Hello from nant task!") </boo>
Boo.Lang.compiler API
import Boo.Lang.Compiler import Boo.Lang.Compiler.IO import Boo.Lang.Compiler.Pipelines compiler = BooCompiler() compiler.Parameters.Input.Add(StringInput("<script>", "print('Hello!')")) compiler.Parameters.Pipeline = Run() compiler.Run()
Labels
(None)

Comments (1)
Jul 21, 2005
Greg Houston says:
To run Boo in the Visual Studio debugger, I found it painful to use the Debug > ...To run Boo in the Visual Studio debugger, I found it painful to use the Debug -> Attach to Process command in Visual Studio. A good way to jump into the debugger is to add a call to Debug.Fail in the Boo code...
import System.Diagnostics
Debug.Fail("Debugging Hello World.")
print( "Hello World" )
When Debug.Fail is executed, a dialog will popup with the given message. From the dialog you have options continue normal execution or launch into the debugger.