switch(LookAhead(Parser))
{
+ // New block
+ case TOK_BRACE_OPEN:
+ return Parse_DoCodeBlock(Parser);
+
// Empty statement
case TOK_SEMICOLON:
GetToken(Parser);
AST_AppendNode(ret, Parse_DoExpr0(Parser));
SyntaxAssert(Parser, GetToken(Parser), TOK_SQUARE_CLOSE);
}
+
+ if( LookAhead(Parser) == TOK_ASSIGN )
+ {
+ GetToken(Parser);
+ ret->DefVar.InitialValue = Parse_DoExpr0(Parser);
+ }
+
return ret;
}