Skip to content

Commit

Permalink
found the place where the issue is happening....
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonak-Adipta-Kalita committed May 10, 2023
1 parent 93a7b47 commit e0acede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func (p *Parser) parseExpression(precedence int) ast.Expression {
func (p *Parser) parsePostfixExpression() ast.Expression {
expression := &ast.PostfixExpression{
Token: p.prevToken,
Operator: &ast.StringLiteral{Value: p.curToken.Literal},
Operator: &ast.StringLiteral{Value: p.curToken.Literal}, // Issue for ++ and --
}
return expression
}
Expand Down

0 comments on commit e0acede

Please sign in to comment.