benilla-re systems structs docs

codestring

function · lua · boundary

Address
0x6fd400 · 35 bytes, up to 0x6fd422
Meaning
Makes an expression of a string constant
Confidence
verified, proof one
Finding
lua/compiler#parser-tokens-and-checks

Finding: Parser tokens and checks in lua: the compiler

The parser reads tokens one ahead through next, which takes a held lookahead token before it asks the lexer, and lookahead, which reads that token. testnext skips a token when it is the one given, check requires it, and check_match requires a closing token and names the opening one and its line when they differ. Names and string constants become expression descriptors of 20 bytes: kind, index, auxiliary index, true list and false list.

functionnamedecided by
0x6fca40nextlookahead test against 287 (0x6fca49), lookahead copied in (0x6fca5c), luaX_lex (0x6fca7f)
0x6fd580lookaheadluaX_lex into the lookahead slot (0x6fd586, 0x6fd58b)
0x6fccf0testnexttoken compare (0x6fccf0), next (0x6fccf5)
0x6fd140checktestnext (0x6fd146), tail jmp to error_expected (0x6fd155)
0x6fce90check_matchtestnext (0x6fce99), same line gives error_expected (0x6fcea8, 0x6fceb0), else the line format (0x6fced2)
0x6fcef0error_expected`%s' expected (0x6fcefc), tail jmp to luaX_syntaxerror (0x6fcf0f)
0x6fd660str_checknamename test (0x6fd663), <name> expected (0x6fd66d), next (0x6fd67c)
0x6fd640checknamestr_checkname (0x6fd646), codestring (0x6fd650)
0x6fd400codestringluaK_stringK (0x6fd40c), kind 4 (0x6fd412)
0x6fd3e0init_expboth jump lists -1 (0x6fd3e6, 0x6fd3e9), kind and index (0x6fd3ef, 0x6fd3f1)

The derivation is in the doc.

Callers 3

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.