5 typedef unsigned char LexChar;
11 void Init(
SQSharedState *ss,SQLEXREADFUNC rg,SQUserPointer up,CompilerErrorFunc efunc,
void *ed);
12 void Error(
const SQChar *err);
14 const SQChar *Tok2Str(SQInteger tok);
16 SQInteger GetIDType(
const SQChar *s,SQInteger len);
17 SQInteger ReadString(SQInteger ndelim,
bool verbatim);
18 SQInteger ReadNumber();
19 void LexBlockComment();
20 void LexLineComment();
24 SQInteger AddUTF8(SQUnsignedInteger ch);
25 SQInteger ProcessStringHexEscape(SQChar *dest, SQInteger maxdigits);
26 SQInteger _curtoken = 0;
28 SQBool _reached_eof = SQFalse;
30 SQInteger _prevtoken = 0;
31 SQInteger _currentline = 0;
32 SQInteger _lasttokenline = 0;
33 SQInteger _currentcolumn = 0;
34 const SQChar *_svalue =
nullptr;
35 SQInteger _nvalue = 0;
36 SQFloat _fvalue = 0.f;
37 SQLEXREADFUNC _readf =
nullptr;
38 SQUserPointer _up =
nullptr;
39 LexChar _currdata = 0;
42 CompilerErrorFunc _errfunc =
nullptr;
43 void *_errtarget =
nullptr;