mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-11 14:37:56 -05:00
14 lines
214 B
Plaintext
14 lines
214 B
Plaintext
export @main {}
|
|
@main = function() {
|
|
call @f1 [1, 2, 3] %x
|
|
apply @f2 %x [] %ignore
|
|
mov %x %return
|
|
}
|
|
@f1 = function(%a, %b, %c) {
|
|
op* %b %c %_tmp0
|
|
op+ %a %_tmp0 %return
|
|
}
|
|
@f2 = function() {
|
|
op++ %this
|
|
}
|