aboutsummaryrefslogtreecommitdiffstats
path: root/test/symtab11.awk
blob: ec7f096bd21e0b9b197134d3ac6b81ec83859932 (plain)
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
BEGIN {
	PROCINFO["sorted_in"] = "@val_type_asc"	# okay with PROCINFO commented out, kaboom if not
	IGNORECASE = 1	# yes

	printf("BEGIN -- Symtab is next\n") > "/dev/stdout"
	for (i in SYMTAB) {
		printf "[%s]\n", i	# else {printf("[%s]\t(%s)\n",i,SYMTAB[i]);}
	}
	printf("BEGIN-- after Symtab loop\n") > "/dev/stdout"	# never got here

	printf("BEGIN -- Functab is next\n") > "/dev/stdout"
	for (i in FUNCTAB) {
		printf "[%s]\n", i	# else {printf("[%s]\t(%s)\n",i,FUNCTAB[i]);}
	}
	printf("BEGIN-- after Functab loop\n") > "/dev/stdout"	# never got here
	exit
}

function foo()
{
	print "foo called"
}

function bar()
{
	print "bar called"
}

# e-o-begin
# --- No END, No Main ... ---