Last updated March 15, 2009 08:35, by headius
BiteScript is usually used as part of a larger program that needs to emit JVM bytecode for whatever reason. The following examples demonstrate such use:
simple_loop.rb - A simple loop implemented using BiteScript.
mixed_bag.rb - A mix of JVM bytecode and Java class features.
BiteScript also ships with two bin scripts, 'bite' for executing a file containing BiteScript, and 'bitec' for compiling such a file to its resulting JVM bytecode. The following exampls show using BiteScript as a standalone language:
fib.bs - The fibonacci algorithm implemented in BiteScript for execution at the command line.





