mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
global vars implementation, todo gc problems
This commit is contained in:
parent
474b0a8ed2
commit
aff30ad7c1
12 changed files with 76 additions and 52 deletions
|
|
@ -1,2 +1,3 @@
|
|||
I,Std;
|
||||
V,x;
|
||||
F,f;
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
public x = 1;
|
||||
|
||||
public fun f(a, b) { a + b }
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
I,Std;
|
||||
V,x;
|
||||
F,f;
|
||||
F,g;
|
||||
|
|
|
|||
0
byterun/regression/dep_test004.input
Normal file
0
byterun/regression/dep_test004.input
Normal file
3
byterun/regression/dep_test004.lama
Normal file
3
byterun/regression/dep_test004.lama
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import Dep;
|
||||
|
||||
f(x, 1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue