about summary refs log tree commit diff stats
path: root/examples/ex8
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-01-01 15:55:12 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-01 15:55:12 -0800
commitdafef4e30fcfb53e6546ce0f53859bf9f1420dd2 (patch)
tree712ed1da30d3543b559b74703d319425873be525 /examples/ex8
parent612636182166a706ff1f64e1705a79ac233836fe (diff)
downloadmu-dafef4e30fcfb53e6546ce0f53859bf9f1420dd2.tar.gz
5849 - more integration testing of function calls
I can now run this program:

  fn main -> result/ebx: int {
    result <- do-add 3 4
  }

  fn do-add a: int, b: int -> result/ebx: int {
    result <- copy a
    result <- add b
  }

We still can't define local variables, but can write any programs involving
ints by passing in enough arguments for temporaries.
Diffstat (limited to 'examples/ex8')
0 files changed, 0 insertions, 0 deletions
.de> 2015-03-19 01:06:02 +0100 Neater copyright header' href='/akspecs/ranger/commit/AUTHORS?h=v1.9.3&id=dc92d37539565a6ec2cb487dc0b26ed875b8ede4'>dc92d375 ^
565247df ^
5b14517a ^
cceb5d67 ^

912e26b4 ^
db2d4b1c ^
14adeb9c ^
dc92d375 ^
4d814e1e ^
8263cbac ^
dc92d375 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30