bug fixes and getfield implementation beta
This commit is contained in:
19
README.md
19
README.md
@@ -53,3 +53,22 @@ Under the hood, Ground uses a bytecode format to store things.
|
||||
`extern` no longer loads a dynamic library from /usr/lib/ground, it is now used to detail a system shared library to open.
|
||||
|
||||
Format: `extern "libName" "symbolName" !functionName -returnType -argType...`
|
||||
|
||||
### `getfield`, `setfield`, `callmethod`
|
||||
|
||||
Due to the new bytecode format, these instructions go from this format
|
||||
|
||||
```
|
||||
getfield $parent &fields... &output
|
||||
setfield &parent &fields... $input
|
||||
callmethod &parent &fields... !functionName $args... &output
|
||||
```
|
||||
|
||||
to this format:
|
||||
```
|
||||
getfield $parent -type (&field -type)... &output
|
||||
setfield &parent -type (&field -type)... $input
|
||||
callmethod &parent -type (&field -type)... !functionName $args... &output
|
||||
```
|
||||
|
||||
so offsets for instructions can be computed before runtime.
|
||||
|
||||
Reference in New Issue
Block a user