mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 09:09:31 +00:00
Add function references
This commit is contained in:
parent
5e7ac83854
commit
6e5cbf9e7e
12 changed files with 245 additions and 49 deletions
27
test/tests/function reference call.ans
Normal file
27
test/tests/function reference call.ans
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
$ f(x)
|
||||
@x+2
|
||||
|
||||
$ g(x)
|
||||
@x+3
|
||||
|
||||
:a = &f
|
||||
|
||||
:b = &g
|
||||
|
||||
3: {f(1)}
|
||||
|
||||
3: {a(1)}
|
||||
|
||||
5: {g(2)}
|
||||
|
||||
4: {a(2)}
|
||||
|
||||
4: {b(1)}
|
||||
|
||||
5: {f(3)}
|
||||
|
||||
13: {b(10)}
|
||||
|
||||
7: {a(5)}
|
||||
|
||||
8: {g(5)}
|
||||
Loading…
Add table
Add a link
Reference in a new issue