Fixed function calls
This commit is contained in:
parent
733bf117c0
commit
b465d7e5b7
|
@ -234,6 +234,10 @@ public final class Parser
|
|||
/* TODO: Collect and return */
|
||||
previousToken();
|
||||
parseFuncCall();
|
||||
|
||||
/* Expect a semi-colon */
|
||||
expect(SymbolType.SEMICOLON, getCurrentToken());
|
||||
nextToken();
|
||||
}
|
||||
/* If we have an identifier/type then declaration */
|
||||
else if(type == SymbolType.IDENT_TYPE)
|
||||
|
@ -581,6 +585,7 @@ public final class Parser
|
|||
{
|
||||
/* TODO: Leave the token here */
|
||||
/* TODO: Just leave it, yeah */
|
||||
// expect("poes");
|
||||
}
|
||||
}
|
||||
/* Detect if this expression is coming to an end, then return */
|
||||
|
@ -805,15 +810,12 @@ public final class Parser
|
|||
expect(SymbolType.LBRACE, getCurrentToken());
|
||||
nextToken();
|
||||
|
||||
/* TODO: SHould be allowing , seperated arguments */
|
||||
/* Parse an expression AND end on closing brace (expect) */
|
||||
parseExpression();
|
||||
expect(SymbolType.RBRACE, getCurrentToken());
|
||||
nextToken();
|
||||
|
||||
/* Expect a semi-colon */
|
||||
expect(SymbolType.SEMICOLON, getCurrentToken());
|
||||
nextToken();
|
||||
|
||||
gprintln("parseFuncCall(): Leave", DebugType.WARNING);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ int a;
|
|||
int b = a.a;
|
||||
int c = b;
|
||||
|
||||
int f = f();
|
||||
|
||||
public ubyte k = 1;
|
||||
private ubyte k2 = 1;
|
||||
|
@ -105,7 +106,7 @@ void pdsjhfjdsf(int j)
|
|||
void k(int j, int k)
|
||||
{
|
||||
|
||||
|
||||
l();
|
||||
|
||||
ubyte thing = "Hello";
|
||||
print("Hello world");
|
||||
|
|
Loading…
Reference in New Issue