untested, added dict_t as a var type in tscript

This commit is contained in:
suchmememanyskill
2021-02-01 17:58:23 +01:00
parent 853cf4f5cf
commit 3a1f8d4243
7 changed files with 69 additions and 2 deletions

View File

@@ -161,6 +161,10 @@ Vector_t runLexer(const char* in, u32 len) {
vecAddElement(&vec, makeLexarToken(LSBracket, 0));
}
ELIFC('.'){
if (lx[vec.count - 1].token == Variable)
lx[vec.count - 1].token = MemberVariable;
}
ELIFC('=') { // Do we need to keep = if the vars are assignments anyway?
if (in[1] == '='){
vecAddElement(&vec, makeLexarToken(EqualEqual, 0));