WIP: Support for `x.x.x` ideas

This commit is contained in:
Tristan B. Velloza Kildaire 2021-03-28 12:11:13 +02:00
parent 1af072de8c
commit 1abbf31f56
1 changed files with 9 additions and 0 deletions

View File

@ -89,6 +89,15 @@ public final class Lexer
/* The splitter token to finally insert */
string splitterToken;
/**
* TODO: Add a check here for checking if the previous character
* was `!isSplitter(sourceCode[position-1])` and if current character
* `c == '.'`, if so then here we check if `sourceCode[position+1]`
* is `!isSplitter` and then we simply add `.` to current token
* build up and increment position but no token flush
*/
/* Check if we need to do combinators (e.g. for ||, &&) */
/* TODO: Second operand in condition out of bounds */
if(currentChar == '|' && (position+1) != sourceCode.length && sourceCode[position+1] == '|')