I added an event system, making it so your code can actually run
on GreenFlag {
main();
}
on KeyPressed(W) {
looks::say("W was pressed!");
}
These events are translated into functions and the compiler generates
scratch events that call these
on KeyPressed(W) {
compiler@eventlistener@F();
}
void compiler@eventlistener@F() {
looks::say("W was pressed!");
}
The compiler also generates a initializer green flag block which clears
the heap and reserves an index for every other entrypoint(image 2)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.