Added files to debug acoss ps

main
Øyvind Skaaden 2022-04-03 22:40:33 +02:00
parent 63a5efae3c
commit 521e412db2
6 changed files with 18 additions and 4 deletions

View File

@ -1,4 +1,5 @@
func add(a, b) begin
a := -a
return a + b
end

View File

@ -1,9 +1,9 @@
func add(a, b) begin
func add(a, b, c) begin
return a + b
end
func main()
begin
print add(40, 2)
print add(40, 2, 4)
return 0
end

View File

@ -2,7 +2,11 @@
func my_func(a, b, c, d, e, f, g, h) begin
var i, j, k, l, m
i := a + b + d
i := a + ~(i + 4)
i := a + (b + d) * (3 + b)
if i = f then begin
print "hmmm"

View File

@ -2,6 +2,8 @@
func my_func(a, b, c, d, e, f, g, h) begin
var i, j, k, l, m
i := --i
i := a + b + d
if i = f then begin

View File

@ -1,4 +1,7 @@
// Checking symbol shadowing
var a
func shadow() begin
var a, b
a := 1

View File

@ -2,7 +2,10 @@
func my_func(a, b, c, d, e, f, g, h) begin
var i, j, k, l, m
i := a + b + d
i := a + ~(i + 4)
i := a + (b + d) * (3 + b)
if i = f then begin
print "hmmm"
@ -14,5 +17,6 @@ func main() begin
var n, o, p, q, r, s, t, u, v, w
n := 5
n += my_func(1, 2, 3, 5, 8, 13, 21, 34)
print n
return 0
end