diff options
| author | Bobby <[email protected]> | 2023-11-03 17:53:17 +0000 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-11-03 17:53:17 +0000 |
| commit | 0a868d6263ccd3de687eeb07d85b7e95056f8340 (patch) | |
| tree | 34f7260fbcb1ecfea51cd891d3a78b7c48a12e22 /parser/parser.go | |
| parent | e8a6c163c9a58b69f6f96c373118ac6996637e25 (diff) | |
| download | mana-0a868d6263ccd3de687eeb07d85b7e95056f8340.tar.xz mana-0a868d6263ccd3de687eeb07d85b7e95056f8340.zip | |
Add PrefixExpressions and ParseIntegerLiterals w/tests
Diffstat (limited to 'parser/parser.go')
| -rw-r--r-- | parser/parser.go | 2 |
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 { |
