Skip to content

How to Run

rollynoel edited this page Jun 16, 2013 · 2 revisions

Added by Rodrigo B. de Oliveira

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()
Clone this wiki locally