aboutsummaryrefslogtreecommitdiff
path: root/parser/parser.go
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-11-03 17:53:17 +0000
committerBobby <[email protected]>2023-11-03 17:53:17 +0000
commit0a868d6263ccd3de687eeb07d85b7e95056f8340 (patch)
tree34f7260fbcb1ecfea51cd891d3a78b7c48a12e22 /parser/parser.go
parente8a6c163c9a58b69f6f96c373118ac6996637e25 (diff)
downloadmana-0a868d6263ccd3de687eeb07d85b7e95056f8340.tar.xz
mana-0a868d6263ccd3de687eeb07d85b7e95056f8340.zip
Add PrefixExpressions and ParseIntegerLiterals w/tests
Diffstat (limited to 'parser/parser.go')
-rw-r--r--parser/parser.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/parser.go b/parser/parser.go
index 32bb4bc..d236bf0 100644
--- a/parser/parser.go
+++ b/parser/parser.go
@@ -115,7 +115,7 @@ func (p *Parser) parseIdentifier() ast.Expression {
// parseIntegerLiteral parses an integer literal.
func (p *Parser) parseIntegerLiteral() ast.Expression {
- var lit *ast.IntegerLiteral = &ast.IntegerLiteral{ Token: p.curToken }
+ var lit *ast.IntegerLiteral = &ast.IntegerLiteral{Token: p.curToken}
var value, err = strconv.ParseInt(p.curToken.Literal, 0, 64)
if err != nil {