
COG Virtual Machine |
The COG VM consists of two major components:
1.) A lexer/parser/code translator which reads in JK COG scripts and generates important symbolic information like heap size, attributes, data segments/string tables and a stream of executable bytecodes.
2.) The execution core, which processes the bytecodes and performs the expected operations.
The internal operations and any dissimilarity to the JK engine should be transparent to the scripter. To use the current version, simply enter the name of your COG script as the only command-line argument. It will automatically send the "startup" message then exit gracefully.