closures and they can recurse!!!
This commit is contained in:
@@ -169,6 +169,10 @@ func (p *Parser) parseLetStatement() *ast.LetStatement {
|
||||
|
||||
stmt.Value = p.parseExpression(LOWEST)
|
||||
|
||||
if fl, ok := stmt.Value.(*ast.FunctionLiteral); ok {
|
||||
fl.Name = stmt.Name.Value
|
||||
}
|
||||
|
||||
if p.peekTokenIs(token.SEMICOLON) {
|
||||
p.nextToken()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user