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

19 lines
259 B
Plaintext
Raw Normal View History

2022-04-10 15:55:56 +02:00
var global_var
func my_func(param)
begin
var local_var, local_var2
local_var := 1
end
var glob1, glob2
func main()
begin
var main_local_var
begin
var main_local_nested_var
main_local_nested_var := main_local_var
end
end