basic compiler work

This commit is contained in:
2026-06-16 12:24:11 +02:00
parent fc8d4d2c02
commit 7a496f58c5
6 changed files with 112 additions and 52 deletions

View File

@@ -584,3 +584,8 @@ noomL_ErrorType noomL_lex(const char* s, noom_uint_t start, noomL_Token* token,
return NOOML_ERROR_UNKNOWN;
}
noom_uint_t noomL_tokenlen(const char *s, noom_uint_t start, noom_LuaVersion version) {
noomL_Token t;
noomL_lex(s, start, &t, version);
return t.length;
}