mirror of https://github.com/tbklang/tlang.git
parent
e469cc3ec3
commit
61aaa84daf
|
@ -90,7 +90,7 @@ public final class Lexer
|
|||
*/
|
||||
private bool hasToken()
|
||||
{
|
||||
return currentToken.length == 0;
|
||||
return currentToken.length != 0;
|
||||
}
|
||||
|
||||
/* Perform the lexing process */
|
||||
|
@ -129,7 +129,7 @@ public final class Lexer
|
|||
*/
|
||||
import misc.utils;
|
||||
|
||||
if(currentChar == '.' && isBackward() && isCharacterAlpha(sourceCode[position-1]))
|
||||
if(currentChar == '.' && hasToken() && isBuildUpValidIdent())
|
||||
{
|
||||
gprintln("Bruh");
|
||||
/**
|
||||
|
|
|
@ -112,6 +112,14 @@ public bool isPathIdentifier(string token)
|
|||
}
|
||||
}
|
||||
|
||||
if(token.length)
|
||||
{
|
||||
if(token[token.length-1] == '.')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return isDot;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ int b = a.a;
|
|||
int c = b;
|
||||
|
||||
int f = f.L(f(1+f.d.d.d()));
|
||||
int p = f2p.j2p.p;
|
||||
int p = f2p.j2.p;
|
||||
|
||||
public ubyte k = 1;
|
||||
private ubyte k2 = 1;
|
||||
|
|
Loading…
Reference in New Issue