Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file added go.sum
Empty file.
7 changes: 6 additions & 1 deletion parser/expression.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package parser

import (
"fmt"
"strconv"
"strings"

Expand Down Expand Up @@ -163,7 +164,11 @@ func (p *Parser) parseInfixExpression(left ast.Expression) ast.Expression {
if ident, ok := left.(*ast.Identifier); ok {
return p.parseFunctionCall(ident.Name(), ident.Position)
}
return left
// Parametric function call like quantile(0.9)(number) - not yet supported
// Return nil to signal error and prevent infinite loop
p.errors = append(p.errors, fmt.Errorf("parametric function calls like func(params)(args) are not yet supported at line %d, column %d",
p.current.Pos.Line, p.current.Pos.Column))
return nil
case token.LBRACKET:
return p.parseArrayAccess(left)
case token.DOT:
Expand Down
Loading