blob: 34f12aa773ab739640563a56296b2c2d5066acc2 (
plain) (
blame)
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
31
32
33
|
# Generated by rawk v2.0.0
# Source: test_simple.rawk
# --- Standard Library ---
function is_number(value) { return value == value + 0 }
function is_string(value) { return !(value == value + 0) }
function get_keys(array, result, i, count) { count = 0; for (i in array) { result[++count] = i }; return count }
# --- User Functions ---
function $add(x,y) { return x + y;
}
# --- Main Script ---
BEGIN {
print "Testing function extraction"
}
}
{
result = add(2, 3);
print "Result:", result;
exit 0;
}
# Rawk compilation summary:
# - Rawk Version: 2.0.0
# - Functions defined: 1
# - Source lines: 15
# - Standard library functions included: 0
|