Removd testing stuff

This commit is contained in:
Tristan B. Velloza Kildaire 2021-03-29 13:34:30 +02:00
parent 1883a91e86
commit e003a9879f
1 changed files with 4 additions and 9 deletions

View File

@ -101,17 +101,10 @@ public final class Lexer
/**
* Here we check if we have a `.`, a character before us
* and that that character was a letter
* Here we check if we have a `.` and that the characters
* preceding us were all godd for an identifier
*/
import misc.utils;
if(currentChar == '.')
{
gprintln(currentChar == '.');
gprintln(isBackward());
gprintln(isCharacterAlpha(sourceCode[position-1]));
}
if(currentChar == '.' && isBackward() && isCharacterAlpha(sourceCode[position-1]))
{
@ -119,6 +112,8 @@ public final class Lexer
/**
* Now we check that we have a character infront of us
* and that it is a letter
*
* TODO: Add _ check too as that is a valid identifier start
*/
if(isForward() && isCharacterAlpha(sourceCode[position+1]))
{