TDT4205/exercises/05/vslc/vsl_programs/ps2-parser/variables.vsl

21 lines
306 B
Plaintext
Raw Normal View History

2022-03-31 21:23:57 +02:00
var global_var
func my_func(param)
begin
var local_var, local_var2
local_var := 1
return local_var
end
var glob1, glob2
func main()
begin
var main_local_var
begin
var main_local_nested_var
main_local_nested_var := main_local_var + my_func(1)
end
return 0
end