Parse call expressions and gets rid of the TODOs in parse let and return.

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-01-05 16:59:06 -08:00
parent 985cf24fbc
commit 44f936affb
4 changed files with 165 additions and 46 deletions

View file

@ -24,6 +24,7 @@ var precedences = map[token.TokenType]int{
token.MINUS: SUM,
token.ASTERISK: PRODUCT,
token.SLASH: PRODUCT,
token.LPAREN: CALL,
}
func (p *Parser) peekPrecedence() int {