Last updated March 15, 2009 08:35, by headius
Feedicon  

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.

  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close