Add the tiger source code bundle from the book site
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
915660c8a7
commit
33d8bac511
87 changed files with 3252 additions and 0 deletions
13
tiger/testcases/test19.tig
Normal file
13
tiger/testcases/test19.tig
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/* error : second function uses variables local to the first one, undeclared variable */
|
||||
let
|
||||
|
||||
function do_nothing1(a: int, b: string):int=
|
||||
(do_nothing2(a+1);0)
|
||||
|
||||
function do_nothing2(d: int):string =
|
||||
(do_nothing1(a, "str");" ")
|
||||
|
||||
in
|
||||
do_nothing1(0, "str2")
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue