Struct parsing basic parsing completed, just simply call `parseAccessor()`
parent
8c7c4d038c
commit
46c135042b
|
@ -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) */
|
||||||
|
|
Loading…
Reference in New Issue