code example in README.md

This commit is contained in:
Sander Hautvast 2020-11-16 18:14:36 +01:00
parent 59d116c0c5
commit 02efd49a28

View file

@ -1,10 +1,14 @@
# beejava # beejava
compiles java 'opcode' to bytecode. compiles java 'opcode' to bytecode.
What is 'opcode'?
The goal of the project is to let developers use a simplified version of standard java opcodes. For instance:
instead of having to choose between INVOKE_SPECIAL, INVOKE_VIRTUAL, INVOKE_DYNAMIC and INVOKE_INTERFACE, developers can just write INVOKE and the compiler will figure out the correct version to put in the class file.
project status: early stage project status: early stage
* At this moment a complete compile cycle is guaranteed (unittested) for a really simple class. * At this moment a complete compile cycle is guaranteed (unittested) for a really simple class.
Code example below, but the API will change without doubt. Code example below, but the API will undoubtedly change.
``` ```
BeeSource createEmptyClass() { BeeSource createEmptyClass() {