Skip to content

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

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

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.

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