mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-31 02:58:19 +00:00
Added tests; weird & ugly workaround in the parser
This commit is contained in:
parent
d69cb3d49d
commit
39388d77fd
13 changed files with 108 additions and 10 deletions
20
regression/test059.expr
Normal file
20
regression/test059.expr
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
fun f (l) {
|
||||
case l of
|
||||
{} -> skip
|
||||
| h : tl -> h (); f (tl)
|
||||
esac
|
||||
}
|
||||
|
||||
fun a () {
|
||||
write (0)
|
||||
}
|
||||
|
||||
fun b () {
|
||||
write (1)
|
||||
}
|
||||
|
||||
fun c () {
|
||||
write (2)
|
||||
}
|
||||
|
||||
f ({a, b, c})
|
||||
Loading…
Add table
Add a link
Reference in a new issue