Struct parsing basic parsing completed, just simply call `parseAccessor()`

develop.sync-conflict-20210606-150924-O3W7KWN
Tristan B. Kildaire 2021-05-31 17:52:15 +02:00
parent 8c7c4d038c
commit 46c135042b
1 changed files with 7 additions and 6 deletions

View File

@ -320,7 +320,7 @@ public final class Parser
while(true) while(true)
{ {
/* Get current token */ /* Get current token */
SymbolType symbolType = getSymbolType(getCurrentToken()); //SymbolType symbolType = getSymbolType(getCurrentToken());
/** TODO: /** TODO:
* We only want to allow function definitions and variable * We only want to allow function definitions and variable
@ -331,12 +331,13 @@ public final class Parser
* filter out those (raise an error) on checking the type of * filter out those (raise an error) on checking the type of
* Entity returned by `parseAccessor()` * Entity returned by `parseAccessor()`
*/ */
Entity structMember = parseAccessor();
/* If closing brace then exit */ // /* If closing brace then exit */
if(symbolType == SymbolType.CCURLY) // if(symbolType == SymbolType.CCURLY)
{ // {
break; // break;
} // }
/* TODO: Only allow variables here */ /* TODO: Only allow variables here */
/* TODO: Only allowe VariableDeclarations (maybe assignments idk) */ /* TODO: Only allowe VariableDeclarations (maybe assignments idk) */