diff options
author | Camil Staps | 2017-07-18 08:59:23 +0000 |
---|---|---|
committer | Camil Staps | 2017-07-18 08:59:23 +0000 |
commit | 092a92a1c17470c2cd1cfbefdc8dc4c7c4038e41 (patch) | |
tree | a51dc49c00a61ca1a5353e47618e4891e8fdc32b /test.sil | |
parent | Compiling seems to work (diff) |
Easier interface
Diffstat (limited to 'test.sil')
-rw-r--r-- | test.sil | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,12 +1,11 @@ -Int main () { - Int x; - Int y; +Int second(Int x, Int y) { Int z; - x := 100; - y := 50; z := x; x := y; y := z; - z := x; - return z; + return y; +} + +Int main () { + return second(100, 200); } |