AWK's builtin function in TypeScript
We have 10 AWK functions so far - help us add more
Got a rainy Sunday afternoon and a taste for a porting puzzle?
- Get inspiration from the GNU AWK manual.
- Click "New file" in the appropriate folder on GitHub. This will fork the project to your account, directly add the file to it, and send a Pull Request to us.
We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.
Upstream Surface Inventory 10/42 shipped • 29 next 24%
Namespace-level inventory for GNU AWK 5.3: what we already ship, what we may still want,
and what we intentionally skip or keep.
GNU AWK built-ins
26%
shipped
10/39 shipped
29 next
3 explicit non-goals
Next
AWK built-ins are mostly pure text and numeric helpers with a good plain-value fit.
andasortasortiatan2bindtextdomaincompldcgettextdcngettextfflushgensubgsubindexisarraylshiftmatchmkboolmktimeorpatsplitrandrshiftsplitsprintfstrftimestrtonumsubsystimetypeofxor
Explicit non-goals (3)
-
closeFile and pipe handle lifecycle is outside Locutus' value-only model. -
srandGlobal RNG seeding mutates ambient runtime state. -
systemShell execution is outside Locutus' portability scope.