Skip to content

lexer, parser: add tokens and nodes for built-in functions#48

Open
gabrielhnf wants to merge 1 commit into
uutils:w_instrfrom
gabrielhnf:lex-parse-builtin-functions
Open

lexer, parser: add tokens and nodes for built-in functions#48
gabrielhnf wants to merge 1 commit into
uutils:w_instrfrom
gabrielhnf:lex-parse-builtin-functions

Conversation

@gabrielhnf

Copy link
Copy Markdown
Contributor

Adds lexer tokens and parser AST support for awk built-in functions

POSIX builtins (length, substr, split, sub, gsub, match, index, sprintf, toupper, tolower, close, fflush, system, int, sqrt, exp, log, sin, cos, atan2, rand, srand) are added as plain keywords.

gawk extensions (gensub, patsplit, strtonum, systime, mktime, strftime, typeof, isarray, asort, asorti, and, or, xor, compl, lshift, rshift) fall back to identifiers in POSIX strict mode via parse_non_posix_keyword.

@Alonely0 Alonely0 self-requested a review June 17, 2026 10:05
@gabrielhnf gabrielhnf marked this pull request as ready for review June 17, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant