|
Project Information
Featured
Downloads
|
BIL: Basic Imperative LanguageBIL is a programming language supporting basic imperative operations and control structures. BIL comes with a parser, an interpreter, a compiler, and a virtual machine to run compiled code. This project is an exercise, and not intended for any sort of real world use; many of its features and design decisions were made with the priority of making something different, not necessarily easy to use or functional. RequirementsTo interpret or compile and run BIL programs from distribution JAR files, the following utilities are required:
To build and test BIL itself, the following utilities are required in addition to those mentioned above:
To view BIL's documentation, a web browser is required. UsageIf you are missing the appropriate JAR file(s), either build them following the steps detailed in "Installation," or download them from http://code.google.com/p/bil/ To use BIL's Parser to generate a parse tree, use the following command: java -jar bil-parser.jar [enter your BIL source code] [Ctrl+d to stop input and generate parse tree] To use BIL's Interpreter to interpret BIL code, use the following command: java -jar bil-interpreter.jar source-file.bil To use BIL's Compiler to compile BIL code, use the following command: java -jar bil-compiler.jar source-file.bil > output.bilvm To interpret compiled BIL code with BIL's VM, use the following commands: jar xf bil-compiler.jar js vm/VM.js output.bilvm InstallationIf not already available, distribution JAR files must be generated. To do so, perform the following steps.
svn checkout http://bil.googlecode.com/svn/trunk/ bil cd bil make dist cd src java -jar ... TestingTo run BIL's automated tests, follow these steps.
svn checkout http://bil.googlecode.com/svn/trunk/ bil cd bil make test Additional DocumentationFor information on programming in BIL, see the LanguageReference. Bundled with any BIL JAR file is detailed documentation. This documentation is located within the doc/ directory within the JAR file. To access this documentation, use the commands: jar xf bil-X.jar # Where X is parser, interpreter, or compiler # Open doc/index.html in your favorite web browser Contact InformationThe author of BIL, Vic Fryzel, can be reached by email at the address listed under the project members. |