repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Function parameters
[cc1516.git]
/
examples
/
StmtEx.spl
diff --git
a/examples/StmtEx.spl
b/examples/StmtEx.spl
index
35ff096
..
ef8cb88
100644
(file)
--- a/
examples/StmtEx.spl
+++ b/
examples/StmtEx.spl
@@
-4,6
+4,7
@@
var z = 3 + y;
Int a = facR(4);
//Int b = test(3);
var f = beep();
Int a = facR(4);
//Int b = test(3);
var f = beep();
+var n = True;
facR(n) :: Int -> Int {
test(3);
facR(n) :: Int -> Int {
test(3);
@@
-15,11
+16,11
@@
facR(n) :: Int -> Int {
return 5;
}
return 5;
}
-test(
n) :: Int -> Int
{
+test(
e) :: Int -> Bool
{
var i = 0;
var i = 0;
- facR(
2
);
- while (
z
< 3) {
- return
3
;
+ facR(
z
);
+ while (
e
< 3) {
+ return
True
;
}
}
}
}