Closed zeroFruit closed 5 years ago
Detail
func parseBlockStatement(buf TokenBuffer) (*ast.BlockStatement, error) { if err := expectNext(buf, Lbrace); err != nil { return nil, err } // TODO: enter scope for curToken.Type != Rbrace && curToken.Type != Eof { ... } if curTokenIs(buf, Rbrace) { buf.Read() } // TODO: leave scope return block, nil }
Detail