func := { | |||||
"hello" | |||||
} | |||||
print func() | |||||
str := "Hello World" | |||||
func := { | |||||
{ | |||||
str | |||||
} | |||||
} | |||||
print func()() | |||||
func := { | |||||
{ | |||||
str = $.0 | |||||
} | |||||
} | |||||
func() 10 | |||||
print str | |||||
func := { | |||||
retval := "what's up" | |||||
{retval} | |||||
} | |||||
print func()() |
hello | |||||
Hello World | |||||
10 | |||||
what's up |
test("examples") { | test("examples") { | ||||
check("namespaces.l2"); | check("namespaces.l2"); | ||||
check("arrays.l2"); | check("arrays.l2"); | ||||
check("functions.l2"); | |||||
} | } | ||||
if (error_message != NULL) { | if (error_message != NULL) { |