diff options
Diffstat (limited to 'awk/rawk/scratch/tests_old/debug_simple.awk')
-rw-r--r-- | awk/rawk/scratch/tests_old/debug_simple.awk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/awk/rawk/scratch/tests_old/debug_simple.awk b/awk/rawk/scratch/tests_old/debug_simple.awk new file mode 100644 index 0000000..34f12aa --- /dev/null +++ b/awk/rawk/scratch/tests_old/debug_simple.awk @@ -0,0 +1,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 |