Documentation ¶
Overview ¶
parser package defines the parser for the Authzed Schema DSL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ComputeExpressionOperators = []binaryOpDefinition{ {lexer.TokenTypeMinus, dslshape.NodeTypeExclusionExpression}, {lexer.TokenTypeAnd, dslshape.NodeTypeIntersectExpression}, {lexer.TokenTypePlus, dslshape.NodeTypeUnionExpression}, }
ComputeExpressionOperators defines the binary operators in precedence order.
Functions ¶
This section is empty.
Types ¶
type AstNode ¶
type AstNode interface { // Connect connects this AstNode to another AstNode with the given predicate. Connect(predicate string, other AstNode) // MustDecorate decorates this AstNode with the given property and string value, returning // the same node. MustDecorate(property string, value string) AstNode // MustDecorateWithInt decorates this AstNode with the given property and int value, returning // the same node. MustDecorateWithInt(property string, value int) AstNode }
AstNode defines an interface for working with nodes created by this parser.
Click to show internal directories.
Click to hide internal directories.