public ExpressionStatement ParseExpressionStatement()
{
var expStatement = new ExpressionStatement
{
Token = Next(),
Expression = ParseExpression()
};
// TODO:
// - Any formal way to handle this?
// - How to handle new line as well?
if (Next().Is(TokenType.RightBrace))
return expStatement;
Match(TokenType.SemiColon);
return expStatement;
}