explist1
function · lua · boundary
- Address
0x6fddf0· 75 bytes, up to0x6fde3a- Meaning
- Parses a comma-separated expression list and answers its length
- Confidence
- verified, proof one
- Finding
- lua/compiler#expressions
Finding: Expressions in lua: the compiler
expr parses subexpr with the limit -1. subexpr takes a unary operator (not or -) with
priority 8, else simpleexp, then folds binary operators whose left priority is above its limit,
reading the right side at the operator's right priority. The priorities are 5.0's: ^ 10 and 9,
* / 7, + - 6, .. 5 and 4, comparisons 3, and 2, or 1, so ^ and .. are right
associative. There is no % operator. primaryexp takes a name or parenthesized expression and
its suffixes.
| function | name | decided by |
|---|---|---|
0x6fd160 | expr | push -1, subexpr (0x6fd162) |
0x6fd170 | subexpr | level above 200 (0x6fd180), getunopr (0x6fd19f), priority 8 (0x6fd1b2), simpleexp (0x6fd1cc), getbinopr (0x6fd1d4), priority (0x6fd1e5, 0x6fd204), luaK_infix (0x6fd1ff), luaK_posfix (0x6fd226) |
0x6fe0a0 | getunopr | - gives 0 (0x6fe0a2), not 1, else 2 (0x6fe0a7..0x6fe0b0) |
0x6fe0c0 | getbinopr | byte-table switch from * (0x6fe0c0..0x6fe0d1), else 14 (0x6fe129) |
0x6fd240 | simpleexp | byte-table switch from { (0x6fd246..0x6fd25e), number (0x6fd270), string (0x6fd293), constructor (0x6fd2ec), body (0x6fd302), else primaryexp (0x6fd310) |
0x6fde40 | prefixexp | ( (0x6fde46), name singlevar (0x6fde65), else unexpected symbol (0x6fde56) |
0x6fdb00 | primaryexp | prefixexp (0x6fdb10), suffix switch (0x6fdb22), . (0x6fdb34), [ (0x6fdb3f..0x6fdb56), : (0x6fdb69, 0x6fdb76), call (0x6fdb81, 0x6fdb8a) |
0x6fdcb0 | luaY_field | luaK_exp2anyreg (0x6fdcc2), checkname (0x6fdcd3), luaK_indexed (0x6fdce0) |
0x6fd690 | luaY_index | expr (0x6fd69f), luaK_exp2val (0x6fd6a9), ] (0x6fd6b7) |
0x6fdcf0 | funcargs | ( (0x6fdcfd), ambiguous syntax (0x6fdd48), explist1 (0x6fdd74), constructor (0x6fdd41), string (0x6fdd30), OP_CALL (0x6fddc7), luaK_fixline (0x6fddde) |
0x6fddf0 | explist1 | expr (0x6fddfc), , (0x6fde08), luaK_exp2nextreg (0x6fde16), the count (0x6fde37) |
The derivation is in the doc.
Callers 5
- funcargs lua
- forlist lua
- localstat lua
- assignment lua
- retstat lua
Callees 3
- testnext lua
- expr lua
- luaK_exp2nextreg lua
Calls and jumps by a bare address, from tables/calls.tsv.