Remove parentheses check in parser
parent
b8a5e641b6
commit
54ddc63fbe
|
@ -91,11 +91,6 @@ public class Parser
|
||||||
}
|
}
|
||||||
else if (token.Type == TokenType.Grouping)
|
else if (token.Type == TokenType.Grouping)
|
||||||
{
|
{
|
||||||
if (token.Value == ")")
|
|
||||||
{
|
|
||||||
throw new InterpreterException("Unexpected )",
|
|
||||||
token.Line, token.Column);
|
|
||||||
}
|
|
||||||
if (prev is LiteralExpression l)
|
if (prev is LiteralExpression l)
|
||||||
{
|
{
|
||||||
// this is a function call
|
// this is a function call
|
||||||
|
|
Loading…
Reference in New Issue