This website requires JavaScript.
Retoor software development
Projects
Research
SearchXNG
Register
Sign In
7 lines
41 B
Plaintext
Raw
Normal View
History
Unescape
Escape
feat: make blocks callable by adding METHOD_CALL type and block class dispatch
2013-10-24 22:01:24 +02:00
var a = {
var b = 234
3
b
feat: add ObjBlock type, block compilation, and newline skipping in parser Introduce a new ObjBlock object type with OBJ_BLOCK tag, replacing the placeholder OBJ_NUM in makeBlock(). Refactor the compiler to separate Parser and Compiler structs, adding skipNewlines and hasError fields to Parser and a parent pointer to Compiler for nested block support. Implement compileBlock() function that compiles a block up to a specified end token, and update callBlock() in the VM to push empty slots for local variables. Adjust token reading functions to accept Parser instead of Compiler, and remove the MAX_TOKEN enum entry.
2013-10-24 21:39:01 +02:00
}
feat: make blocks callable by adding METHOD_CALL type and block class dispatch
2013-10-24 22:01:24 +02:00
a.call
Reference in New Issue
Copy Permalink
722e1dc638
wren
/
example
/
hello.wren