Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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

No Format
booi examples/HelloWorld.boo

To execute a script read directly from stdin:

No Format
booi -

booc utility

boo nant task

Code Block
XML
XML
<boo>
print("Hello from nant task!")
</boo>

Boo.Lang.compiler API

Code Block
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()