Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Heap & Object

Latest
Compare
Choose a tag to compare
@nyzd nyzd released this 19 Sep 22:44
· 3 commits to main since this release

What's Changed

A New Heap section of the interpreter was added, and Jsl now supports Objects as expressions (like javascript).

Example

object {
    x = 1
    y = 2
}

get x put

this will print out 1

New Objects will pushed to the heap and the pointer to the heap data will pushed to the stack: [ Pointer(0x1) ] , ( ) -> ( a )