Home | History | Annotate | Download | only in parser

Lines Matching refs:Operator

338 func (p *parser) evaluateOperator(value1, value2 Expression, operator rune,
339 pos scanner.Position) (*Operator, error) {
347 return nil, fmt.Errorf("mismatched type in operator %c: %s != %s", operator,
353 switch operator {
367 return nil, fmt.Errorf("operator %c not supported on type %s", operator, v.Type())
370 panic("unknown operator " + string(operator))
374 return &Operator{
376 Operator: operator,
423 func (p *parser) parseOperator(value1 Expression) *Operator {
424 operator := p.tok
426 p.accept(operator)
430 value, err := p.evaluateOperator(value1, value2, operator, pos)