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:
parent
985cf24fbc
commit
44f936affb
4 changed files with 165 additions and 46 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue