Denys Vlasenko
|
ef5463cf16
awk: shuffle globals for smaller offsets
|
3 years ago |
Denys Vlasenko
|
966cafcc77
awk: use "static" tmpvars in main and exit
|
3 years ago |
Denys Vlasenko
|
1193c68fa7
awk: when parsing length(), simplify eating of LPAREN
|
3 years ago |
Denys Vlasenko
|
40573556f2
awk: shuffle functions to reduce forward declarations, no code changes
|
3 years ago |
Denys Vlasenko
|
8b4c429025
awk: use static tmpvars instead of nvalloc(1)ed ones
|
3 years ago |
Denys Vlasenko
|
1573487e21
awk: rename temp variables, no code changes
|
3 years ago |
Denys Vlasenko
|
d7354df169
awk: evaluate all, even superfluous function args
|
3 years ago |
Denys Vlasenko
|
ca9278ee58
awk: rewrite "print" logic a bit to make it clearer
|
3 years ago |
Denys Vlasenko
|
d150710169
awk: allow empty fuinctions with no arguments, disallow function redefinitions
|
3 years ago |
Denys Vlasenko
|
86fc2872b3
awk: replace incorrect use of union in undefined function check (no code changes)
|
3 years ago |
Denys Vlasenko
|
6cf6f1eaee
awk: remove custom pool allocator for temporary awk variables
|
3 years ago |
Denys Vlasenko
|
3aff3b9cb8
awk: assorted optimizations
|
3 years ago |
Denys Vlasenko
|
b3c91a127f
awk: free unused parsing structures after parse is done
|
3 years ago |
Denys Vlasenko
|
21fbee2e87
awk: document which hashes are used at what state (parse/execute)
|
3 years ago |
Denys Vlasenko
|
6872c193a9
awk: fix parsing of expressions such as "v (a)"
|
3 years ago |
Denys Vlasenko
|
686287b5da
awk: deindent a block, no code changes
|
3 years ago |
Denys Vlasenko
|
216d3d8ad9
awk: code shrink
|
3 years ago |
Denys Vlasenko
|
4f27503a1e
awk: get rid of "move name one char back" trick in next_token()
|
3 years ago |
Denys Vlasenko
|
f414fb4411
awk: when parsing TC_FUNCTION token, eat its opening '('
|
3 years ago |
Denys Vlasenko
|
cb6061a4e9
awk: g_buf[] does not need a separate allocation
|
3 years ago |
Denys Vlasenko
|
926420795b
awk: simplify parsing of function declaration
|
3 years ago |
Denys Vlasenko
|
9782cb7774
awk: rename TC_SEQSTART/END to L/RPAREN, no code changes
|
3 years ago |
Denys Vlasenko
|
a493441ca5
awk: deindent code block, no code changes
|
3 years ago |
Denys Vlasenko
|
adcd9a6f34
awk: use TS_foo for combined token classes. No code changes
|
3 years ago |
Denys Vlasenko
|
832cb4fcb9
awk: make ltclass ("last token class") local to next_token()
|
3 years ago |
Denys Vlasenko
|
af0172369e
awk: remove redundant check
|
3 years ago |
Denys Vlasenko
|
78645d8371
awk: move locals deeper into scopes where they are used, no logic changes
|
3 years ago |
Denys Vlasenko
|
8c5da0323b
awk: more efficient -f FILE, document what "some trick in next_token" is
|
3 years ago |
Denys Vlasenko
|
ac4786ba00
qwk: make code clearer, no actual code changes
|
3 years ago |
Denys Vlasenko
|
fd217c1cbf
awk: after preinc/dec, only allow variable, field ref, array ref, or another preinc/dec
|
3 years ago |