Skip to content

Commit

Permalink
Update parser.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Aug 18, 2024
1 parent df18f10 commit 0f4f999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ func ParseExpression(input []byte) (e Expression, err error) {
err = r.(Error)
}
}()
t := NewLexer(input)
p := parser{lexer: t}
l := NewLexer(input)
p := parser{lexer: l}
p.next()
return p.expression(), nil
}
Expand All @@ -497,8 +497,8 @@ func ParseProgram(input []byte) (prog *Program, err error) {
err = r.(Error)
}
}()
t := NewLexer(input)
p := parser{lexer: t}
l := NewLexer(input)
p := parser{lexer: l}
p.next()
return p.program(), nil
}

0 comments on commit 0f4f999

Please sign in to comment.