MCPcopy Create free account
hub / github.com/Permify/permify / isInfixOperator

Method isInfixOperator

pkg/dsl/parser/parser.go:694–696  ·  view source on GitHub ↗

parseIntegerLiteral parses an integer literal and returns the resulting IntegerLiteral expression.

(tokenType token.Type)

Source from the content-addressed store, hash-verified

692
693// parseIntegerLiteral parses an integer literal and returns the resulting IntegerLiteral expression.
694func (p *Parser) isInfixOperator(tokenType token.Type) bool {
695 return tokenType == token.AND || tokenType == token.OR || tokenType == token.NOT
696}
697
698// peekPrecedence returns the precedence of the next token in the input, if it is a known
699// operator, or the lowest precedence otherwise.

Callers 1

parseInfixExpressionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected