Closures 25
This commit is contained in:
parent
1a614ac45b
commit
dc4e6d33b2
16 changed files with 422 additions and 209 deletions
|
|
@ -23,8 +23,10 @@ enum OpCode : ubyte{
|
|||
@(OpColour("255", "200", "100")) False,
|
||||
|
||||
@(OpColour("000", "200", "100")) Pop,
|
||||
@OpStack @(OpColour("060", "200", "150")) GetLocal,
|
||||
@OpStack @(OpColour("060", "210", "150")) GetLocal,
|
||||
@OpStack @(OpColour("060", "200", "150")) SetLocal,
|
||||
@OpStack @(OpColour("080", "210", "150")) GetUpvalue,
|
||||
@OpStack @(OpColour("080", "200", "150")) SetUpvalue,
|
||||
|
||||
@OpConst @(OpColour("000", "200", "150")) GetGlobal,
|
||||
@OpConst @(OpColour("000", "200", "150")) DefineGlobal,
|
||||
|
|
@ -51,6 +53,8 @@ enum OpCode : ubyte{
|
|||
@(OpColour("000", "200", "100")) Print,
|
||||
|
||||
@OpCall @(OpColour("250", "200", "250")) Call,
|
||||
@(OpColour("250", "200", "250")) Closure,
|
||||
@(OpColour("250", "200", "050")) CloseUpvalue,
|
||||
@(OpColour("250", "190", "200")) Return,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue