mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
[language] replace constant symbols with a constant value check function
This commit is contained in:
parent
b534a3c4a2
commit
aaff625b6c
15 changed files with 31 additions and 37 deletions
|
|
@ -1,4 +1,4 @@
|
|||
::a = *[3]
|
||||
:a::constant = *[3]
|
||||
|
||||
|{a}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
::a = 3
|
||||
:a::constant = 3
|
||||
|
||||
{a}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
::a = [1:2]
|
||||
:a::constant = [1:2]
|
||||
|
||||
|false = {a == [5:2]}
|
||||
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
|true = {a == [1:2]}
|
||||
|
||||
::b = [1,2,3]
|
||||
:b::constant = [1,2,3]
|
||||
|
||||
|false = {b == a}
|
||||
|
||||
|
|
@ -24,6 +24,6 @@
|
|||
|
||||
|true = {c!to tuple == b}
|
||||
|
||||
::d = [1,2,3]
|
||||
:d::constant = [1,2,3]
|
||||
|
||||
|true = {d == b}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
:l = *[1,2,3]
|
||||
|
||||
::&c => l(2)
|
||||
:&c::constant => l(2)
|
||||
|
||||
| c={c} (2)
|
||||
| l={l} (*[1,2,3])
|
||||
|
||||
::&d = "{l(2)}"
|
||||
:&d::constant = "{l(2)}"
|
||||
|
||||
| d={c} (2)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue