diff options
Diffstat (limited to 'awk/rawk/tests/real_world/test_mixed.rawk')
-rw-r--r-- | awk/rawk/tests/real_world/test_mixed.rawk | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/awk/rawk/tests/real_world/test_mixed.rawk b/awk/rawk/tests/real_world/test_mixed.rawk deleted file mode 100644 index 50cb6bb..0000000 --- a/awk/rawk/tests/real_world/test_mixed.rawk +++ /dev/null @@ -1,27 +0,0 @@ -# Mixed rawk and awk code -$increment = (x) -> x + 1; -$format_line = (line_num, text) -> "Line " line_num ": " text; - -# Regular awk code mixed in -BEGIN { - print "=== Mixed rawk and awk test ===" -} - -# Process each input line -{ - # Use rawk functions - incremented_line = increment(NR) - formatted = format_line(NR, $0) - - # Regular awk processing - if (length($0) > 10) { - print formatted " (long line)" - } else { - print formatted " (short line)" - } -} - -END { - print "=== End of processing ===" - print "Total lines processed:", NR -} \ No newline at end of file |