lang: Port TestAstFunc1 to txtar format

This commit is contained in:
James Shubin
2023-06-01 16:11:47 -04:00
parent 8fffd10280
commit 66edf22ea3
121 changed files with 656 additions and 558 deletions

View File

@@ -0,0 +1,12 @@
-- main.mcl --
# this should be okay, because var is shadowed
$x = "hello"
if true {
$x = "world" # shadowed
test $x {}
}
-- OUTPUT --
Edge: str("world") -> var(x) # var:x
Vertex: bool(true)
Vertex: str("world")
Vertex: var(x)