parser

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AzmLexerT__0     = 1
	AzmLexerT__1     = 2
	AzmLexerT__2     = 3
	AzmLexerARROW    = 4
	AzmLexerHASH     = 5
	AzmLexerCOLON    = 6
	AzmLexerASTERISK = 7
	AzmLexerID       = 8
	AzmLexerWS       = 9
)

AzmLexer tokens.

View Source
const (
	AzmParserEOF      = antlr.TokenEOF
	AzmParserT__0     = 1
	AzmParserT__1     = 2
	AzmParserT__2     = 3
	AzmParserARROW    = 4
	AzmParserHASH     = 5
	AzmParserCOLON    = 6
	AzmParserASTERISK = 7
	AzmParserID       = 8
	AzmParserWS       = 9
)

AzmParser tokens.

View Source
const (
	AzmParserRULE_relation     = 0
	AzmParserRULE_permission   = 1
	AzmParserRULE_union        = 2
	AzmParserRULE_intersection = 3
	AzmParserRULE_exclusion    = 4
	AzmParserRULE_rel          = 5
	AzmParserRULE_perm         = 6
	AzmParserRULE_direct       = 7
	AzmParserRULE_subject      = 8
	AzmParserRULE_wildcard     = 9
	AzmParserRULE_arrow        = 10
)

AzmParser rules.

Variables

View Source
var AzmLexerLexerStaticData struct {
	ChannelNames           []string
	ModeNames              []string
	LiteralNames           []string
	SymbolicNames          []string
	RuleNames              []string
	PredictionContextCache *antlr.PredictionContextCache
	// contains filtered or unexported fields
}
View Source
var AzmParserStaticData struct {
	LiteralNames           []string
	SymbolicNames          []string
	RuleNames              []string
	PredictionContextCache *antlr.PredictionContextCache
	// contains filtered or unexported fields
}

Functions

func AzmLexerInit

func AzmLexerInit()

AzmLexerInit initializes any static state used to implement AzmLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewAzmLexer(). You can call this function if you wish to initialize the static state ahead of time.

func AzmParserInit

func AzmParserInit()

AzmParserInit initializes any static state used to implement AzmParser. By default the static state used to implement the parser is lazily initialized during the first call to NewAzmParser(). You can call this function if you wish to initialize the static state ahead of time.

func InitEmptyArrowContext

func InitEmptyArrowContext(p *ArrowContext)

func InitEmptyDirectContext

func InitEmptyDirectContext(p *DirectContext)

func InitEmptyExclusionContext

func InitEmptyExclusionContext(p *ExclusionContext)

func InitEmptyIntersectionContext

func InitEmptyIntersectionContext(p *IntersectionContext)

func InitEmptyPermContext

func InitEmptyPermContext(p *PermContext)

func InitEmptyPermissionContext

func InitEmptyPermissionContext(p *PermissionContext)

func InitEmptyRelContext

func InitEmptyRelContext(p *RelContext)

func InitEmptyRelationContext

func InitEmptyRelationContext(p *RelationContext)

func InitEmptySubjectContext

func InitEmptySubjectContext(p *SubjectContext)

func InitEmptyUnionContext

func InitEmptyUnionContext(p *UnionContext)

func InitEmptyWildcardContext

func InitEmptyWildcardContext(p *WildcardContext)

func ParsePermission

func ParsePermission(input string) *model.Permission

func ParseRelation

func ParseRelation(input string) []*model.RelationRef

Types

type ArrowContext

type ArrowContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewArrowContext

func NewArrowContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArrowContext

func NewEmptyArrowContext

func NewEmptyArrowContext() *ArrowContext

func (*ArrowContext) ARROW

func (s *ArrowContext) ARROW() antlr.TerminalNode

func (*ArrowContext) Accept

func (s *ArrowContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ArrowContext) AllID

func (s *ArrowContext) AllID() []antlr.TerminalNode

func (*ArrowContext) GetParser

func (s *ArrowContext) GetParser() antlr.Parser

func (*ArrowContext) GetRuleContext

func (s *ArrowContext) GetRuleContext() antlr.RuleContext

func (*ArrowContext) ID

func (s *ArrowContext) ID(i int) antlr.TerminalNode

func (*ArrowContext) IsArrowContext

func (*ArrowContext) IsArrowContext()

func (*ArrowContext) ToStringTree

func (s *ArrowContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ArrowPermContext

type ArrowPermContext struct {
	PermContext
}

func NewArrowPermContext

func NewArrowPermContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ArrowPermContext

func (*ArrowPermContext) Accept

func (s *ArrowPermContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ArrowPermContext) Arrow

func (s *ArrowPermContext) Arrow() IArrowContext

func (*ArrowPermContext) GetRuleContext

func (s *ArrowPermContext) GetRuleContext() antlr.RuleContext

type AzmLexer

type AzmLexer struct {
	*antlr.BaseLexer
	// contains filtered or unexported fields
}

func NewAzmLexer

func NewAzmLexer(input antlr.CharStream) *AzmLexer

NewAzmLexer produces a new lexer instance for the optional input antlr.CharStream.

type AzmParser

type AzmParser struct {
	*antlr.BaseParser
}

func NewAzmParser

func NewAzmParser(input antlr.TokenStream) *AzmParser

NewAzmParser produces a new parser instance for the optional input antlr.TokenStream.

func (*AzmParser) Arrow

func (p *AzmParser) Arrow() (localctx IArrowContext)

func (*AzmParser) Direct

func (p *AzmParser) Direct() (localctx IDirectContext)

func (*AzmParser) Exclusion

func (p *AzmParser) Exclusion() (localctx IExclusionContext)

func (*AzmParser) Intersection

func (p *AzmParser) Intersection() (localctx IIntersectionContext)

func (*AzmParser) Perm

func (p *AzmParser) Perm() (localctx IPermContext)

func (*AzmParser) Permission

func (p *AzmParser) Permission() (localctx IPermissionContext)

func (*AzmParser) Rel

func (p *AzmParser) Rel() (localctx IRelContext)

func (*AzmParser) Relation

func (p *AzmParser) Relation() (localctx IRelationContext)

func (*AzmParser) Subject

func (p *AzmParser) Subject() (localctx ISubjectContext)

func (*AzmParser) Union

func (p *AzmParser) Union() (localctx IUnionContext)

func (*AzmParser) Wildcard

func (p *AzmParser) Wildcard() (localctx IWildcardContext)

type AzmVisitor

type AzmVisitor interface {
	antlr.ParseTreeVisitor

	// Visit a parse tree produced by AzmParser#relation.
	VisitRelation(ctx *RelationContext) interface{}

	// Visit a parse tree produced by AzmParser#UnionPerm.
	VisitUnionPerm(ctx *UnionPermContext) interface{}

	// Visit a parse tree produced by AzmParser#IntersectionPerm.
	VisitIntersectionPerm(ctx *IntersectionPermContext) interface{}

	// Visit a parse tree produced by AzmParser#ExclusionPerm.
	VisitExclusionPerm(ctx *ExclusionPermContext) interface{}

	// Visit a parse tree produced by AzmParser#union.
	VisitUnion(ctx *UnionContext) interface{}

	// Visit a parse tree produced by AzmParser#intersection.
	VisitIntersection(ctx *IntersectionContext) interface{}

	// Visit a parse tree produced by AzmParser#exclusion.
	VisitExclusion(ctx *ExclusionContext) interface{}

	// Visit a parse tree produced by AzmParser#DirectRel.
	VisitDirectRel(ctx *DirectRelContext) interface{}

	// Visit a parse tree produced by AzmParser#WildcardRel.
	VisitWildcardRel(ctx *WildcardRelContext) interface{}

	// Visit a parse tree produced by AzmParser#SubjectRel.
	VisitSubjectRel(ctx *SubjectRelContext) interface{}

	// Visit a parse tree produced by AzmParser#DirectPerm.
	VisitDirectPerm(ctx *DirectPermContext) interface{}

	// Visit a parse tree produced by AzmParser#ArrowPerm.
	VisitArrowPerm(ctx *ArrowPermContext) interface{}

	// Visit a parse tree produced by AzmParser#direct.
	VisitDirect(ctx *DirectContext) interface{}

	// Visit a parse tree produced by AzmParser#subject.
	VisitSubject(ctx *SubjectContext) interface{}

	// Visit a parse tree produced by AzmParser#wildcard.
	VisitWildcard(ctx *WildcardContext) interface{}

	// Visit a parse tree produced by AzmParser#arrow.
	VisitArrow(ctx *ArrowContext) interface{}
}

A complete Visitor for a parse tree produced by AzmParser.

type BaseAzmVisitor

type BaseAzmVisitor struct {
	*antlr.BaseParseTreeVisitor
}

func (*BaseAzmVisitor) VisitArrow

func (v *BaseAzmVisitor) VisitArrow(ctx *ArrowContext) interface{}

func (*BaseAzmVisitor) VisitArrowPerm

func (v *BaseAzmVisitor) VisitArrowPerm(ctx *ArrowPermContext) interface{}

func (*BaseAzmVisitor) VisitDirect

func (v *BaseAzmVisitor) VisitDirect(ctx *DirectContext) interface{}

func (*BaseAzmVisitor) VisitDirectPerm

func (v *BaseAzmVisitor) VisitDirectPerm(ctx *DirectPermContext) interface{}

func (*BaseAzmVisitor) VisitDirectRel

func (v *BaseAzmVisitor) VisitDirectRel(ctx *DirectRelContext) interface{}

func (*BaseAzmVisitor) VisitExclusion

func (v *BaseAzmVisitor) VisitExclusion(ctx *ExclusionContext) interface{}

func (*BaseAzmVisitor) VisitExclusionPerm

func (v *BaseAzmVisitor) VisitExclusionPerm(ctx *ExclusionPermContext) interface{}

func (*BaseAzmVisitor) VisitIntersection

func (v *BaseAzmVisitor) VisitIntersection(ctx *IntersectionContext) interface{}

func (*BaseAzmVisitor) VisitIntersectionPerm

func (v *BaseAzmVisitor) VisitIntersectionPerm(ctx *IntersectionPermContext) interface{}

func (*BaseAzmVisitor) VisitRelation

func (v *BaseAzmVisitor) VisitRelation(ctx *RelationContext) interface{}

func (*BaseAzmVisitor) VisitSubject

func (v *BaseAzmVisitor) VisitSubject(ctx *SubjectContext) interface{}

func (*BaseAzmVisitor) VisitSubjectRel

func (v *BaseAzmVisitor) VisitSubjectRel(ctx *SubjectRelContext) interface{}

func (*BaseAzmVisitor) VisitUnion

func (v *BaseAzmVisitor) VisitUnion(ctx *UnionContext) interface{}

func (*BaseAzmVisitor) VisitUnionPerm

func (v *BaseAzmVisitor) VisitUnionPerm(ctx *UnionPermContext) interface{}

func (*BaseAzmVisitor) VisitWildcard

func (v *BaseAzmVisitor) VisitWildcard(ctx *WildcardContext) interface{}

func (*BaseAzmVisitor) VisitWildcardRel

func (v *BaseAzmVisitor) VisitWildcardRel(ctx *WildcardRelContext) interface{}

type DirectContext

type DirectContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewDirectContext

func NewDirectContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DirectContext

func NewEmptyDirectContext

func NewEmptyDirectContext() *DirectContext

func (*DirectContext) Accept

func (s *DirectContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*DirectContext) GetParser

func (s *DirectContext) GetParser() antlr.Parser

func (*DirectContext) GetRuleContext

func (s *DirectContext) GetRuleContext() antlr.RuleContext

func (*DirectContext) ID

func (s *DirectContext) ID() antlr.TerminalNode

func (*DirectContext) IsDirectContext

func (*DirectContext) IsDirectContext()

func (*DirectContext) ToStringTree

func (s *DirectContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type DirectPermContext

type DirectPermContext struct {
	PermContext
}

func NewDirectPermContext

func NewDirectPermContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *DirectPermContext

func (*DirectPermContext) Accept

func (s *DirectPermContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*DirectPermContext) Direct

func (s *DirectPermContext) Direct() IDirectContext

func (*DirectPermContext) GetRuleContext

func (s *DirectPermContext) GetRuleContext() antlr.RuleContext

type DirectRelContext

type DirectRelContext struct {
	RelContext
}

func NewDirectRelContext

func NewDirectRelContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *DirectRelContext

func (*DirectRelContext) Accept

func (s *DirectRelContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*DirectRelContext) Direct

func (s *DirectRelContext) Direct() IDirectContext

func (*DirectRelContext) GetRuleContext

func (s *DirectRelContext) GetRuleContext() antlr.RuleContext

type ExclusionContext

type ExclusionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyExclusionContext

func NewEmptyExclusionContext() *ExclusionContext

func NewExclusionContext

func NewExclusionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExclusionContext

func (*ExclusionContext) Accept

func (s *ExclusionContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ExclusionContext) AllPerm

func (s *ExclusionContext) AllPerm() []IPermContext

func (*ExclusionContext) GetParser

func (s *ExclusionContext) GetParser() antlr.Parser

func (*ExclusionContext) GetRuleContext

func (s *ExclusionContext) GetRuleContext() antlr.RuleContext

func (*ExclusionContext) IsExclusionContext

func (*ExclusionContext) IsExclusionContext()

func (*ExclusionContext) Perm

func (s *ExclusionContext) Perm(i int) IPermContext

func (*ExclusionContext) ToStringTree

func (s *ExclusionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ExclusionPermContext

type ExclusionPermContext struct {
	PermissionContext
}

func NewExclusionPermContext

func NewExclusionPermContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ExclusionPermContext

func (*ExclusionPermContext) Accept

func (s *ExclusionPermContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ExclusionPermContext) EOF

func (s *ExclusionPermContext) EOF() antlr.TerminalNode

func (*ExclusionPermContext) Exclusion

func (s *ExclusionPermContext) Exclusion() IExclusionContext

func (*ExclusionPermContext) GetRuleContext

func (s *ExclusionPermContext) GetRuleContext() antlr.RuleContext

type IArrowContext

type IArrowContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllID() []antlr.TerminalNode
	ID(i int) antlr.TerminalNode
	ARROW() antlr.TerminalNode

	// IsArrowContext differentiates from other interfaces.
	IsArrowContext()
}

IArrowContext is an interface to support dynamic dispatch.

type IDirectContext

type IDirectContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	ID() antlr.TerminalNode

	// IsDirectContext differentiates from other interfaces.
	IsDirectContext()
}

IDirectContext is an interface to support dynamic dispatch.

type IExclusionContext

type IExclusionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllPerm() []IPermContext
	Perm(i int) IPermContext

	// IsExclusionContext differentiates from other interfaces.
	IsExclusionContext()
}

IExclusionContext is an interface to support dynamic dispatch.

type IIntersectionContext

type IIntersectionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllPerm() []IPermContext
	Perm(i int) IPermContext

	// IsIntersectionContext differentiates from other interfaces.
	IsIntersectionContext()
}

IIntersectionContext is an interface to support dynamic dispatch.

type IPermContext

type IPermContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsPermContext differentiates from other interfaces.
	IsPermContext()
}

IPermContext is an interface to support dynamic dispatch.

type IPermissionContext

type IPermissionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsPermissionContext differentiates from other interfaces.
	IsPermissionContext()
}

IPermissionContext is an interface to support dynamic dispatch.

type IRelContext

type IRelContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsRelContext differentiates from other interfaces.
	IsRelContext()
}

IRelContext is an interface to support dynamic dispatch.

type IRelationContext

type IRelationContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllRel() []IRelContext
	Rel(i int) IRelContext
	EOF() antlr.TerminalNode

	// IsRelationContext differentiates from other interfaces.
	IsRelationContext()
}

IRelationContext is an interface to support dynamic dispatch.

type ISubjectContext

type ISubjectContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllID() []antlr.TerminalNode
	ID(i int) antlr.TerminalNode
	HASH() antlr.TerminalNode

	// IsSubjectContext differentiates from other interfaces.
	IsSubjectContext()
}

ISubjectContext is an interface to support dynamic dispatch.

type IUnionContext

type IUnionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllPerm() []IPermContext
	Perm(i int) IPermContext

	// IsUnionContext differentiates from other interfaces.
	IsUnionContext()
}

IUnionContext is an interface to support dynamic dispatch.

type IWildcardContext

type IWildcardContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	ID() antlr.TerminalNode
	COLON() antlr.TerminalNode
	ASTERISK() antlr.TerminalNode

	// IsWildcardContext differentiates from other interfaces.
	IsWildcardContext()
}

IWildcardContext is an interface to support dynamic dispatch.

type IntersectionContext

type IntersectionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyIntersectionContext

func NewEmptyIntersectionContext() *IntersectionContext

func NewIntersectionContext

func NewIntersectionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IntersectionContext

func (*IntersectionContext) Accept

func (s *IntersectionContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*IntersectionContext) AllPerm

func (s *IntersectionContext) AllPerm() []IPermContext

func (*IntersectionContext) GetParser

func (s *IntersectionContext) GetParser() antlr.Parser

func (*IntersectionContext) GetRuleContext

func (s *IntersectionContext) GetRuleContext() antlr.RuleContext

func (*IntersectionContext) IsIntersectionContext

func (*IntersectionContext) IsIntersectionContext()

func (*IntersectionContext) Perm

func (*IntersectionContext) ToStringTree

func (s *IntersectionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type IntersectionPermContext

type IntersectionPermContext struct {
	PermissionContext
}

func NewIntersectionPermContext

func NewIntersectionPermContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *IntersectionPermContext

func (*IntersectionPermContext) Accept

func (s *IntersectionPermContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*IntersectionPermContext) EOF

func (s *IntersectionPermContext) EOF() antlr.TerminalNode

func (*IntersectionPermContext) GetRuleContext

func (s *IntersectionPermContext) GetRuleContext() antlr.RuleContext

func (*IntersectionPermContext) Intersection

type PermContext

type PermContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPermContext

func NewEmptyPermContext() *PermContext

func NewPermContext

func NewPermContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PermContext

func (*PermContext) CopyAll

func (s *PermContext) CopyAll(ctx *PermContext)

func (*PermContext) GetParser

func (s *PermContext) GetParser() antlr.Parser

func (*PermContext) GetRuleContext

func (s *PermContext) GetRuleContext() antlr.RuleContext

func (*PermContext) IsPermContext

func (*PermContext) IsPermContext()

func (*PermContext) ToStringTree

func (s *PermContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type PermissionContext

type PermissionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPermissionContext

func NewEmptyPermissionContext() *PermissionContext

func NewPermissionContext

func NewPermissionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PermissionContext

func (*PermissionContext) CopyAll

func (s *PermissionContext) CopyAll(ctx *PermissionContext)

func (*PermissionContext) GetParser

func (s *PermissionContext) GetParser() antlr.Parser

func (*PermissionContext) GetRuleContext

func (s *PermissionContext) GetRuleContext() antlr.RuleContext

func (*PermissionContext) IsPermissionContext

func (*PermissionContext) IsPermissionContext()

func (*PermissionContext) ToStringTree

func (s *PermissionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type PermissionVisitor

type PermissionVisitor struct {
	BaseAzmVisitor
}

func (*PermissionVisitor) Visit

func (v *PermissionVisitor) Visit(tree antlr.ParseTree) interface{}

func (*PermissionVisitor) VisitArrowPerm

func (v *PermissionVisitor) VisitArrowPerm(c *ArrowPermContext) interface{}

func (*PermissionVisitor) VisitDirectPerm

func (v *PermissionVisitor) VisitDirectPerm(c *DirectPermContext) interface{}

func (*PermissionVisitor) VisitExclusionPerm

func (v *PermissionVisitor) VisitExclusionPerm(c *ExclusionPermContext) interface{}

func (*PermissionVisitor) VisitIntersectionPerm

func (v *PermissionVisitor) VisitIntersectionPerm(c *IntersectionPermContext) interface{}

func (*PermissionVisitor) VisitUnionPerm

func (v *PermissionVisitor) VisitUnionPerm(c *UnionPermContext) interface{}

type RelContext

type RelContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyRelContext

func NewEmptyRelContext() *RelContext

func NewRelContext

func NewRelContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RelContext

func (*RelContext) CopyAll

func (s *RelContext) CopyAll(ctx *RelContext)

func (*RelContext) GetParser

func (s *RelContext) GetParser() antlr.Parser

func (*RelContext) GetRuleContext

func (s *RelContext) GetRuleContext() antlr.RuleContext

func (*RelContext) IsRelContext

func (*RelContext) IsRelContext()

func (*RelContext) ToStringTree

func (s *RelContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type RelationContext

type RelationContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyRelationContext

func NewEmptyRelationContext() *RelationContext

func NewRelationContext

func NewRelationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RelationContext

func (*RelationContext) Accept

func (s *RelationContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*RelationContext) AllRel

func (s *RelationContext) AllRel() []IRelContext

func (*RelationContext) EOF

func (s *RelationContext) EOF() antlr.TerminalNode

func (*RelationContext) GetParser

func (s *RelationContext) GetParser() antlr.Parser

func (*RelationContext) GetRuleContext

func (s *RelationContext) GetRuleContext() antlr.RuleContext

func (*RelationContext) IsRelationContext

func (*RelationContext) IsRelationContext()

func (*RelationContext) Rel

func (s *RelationContext) Rel(i int) IRelContext

func (*RelationContext) ToStringTree

func (s *RelationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type RelationVisitor

type RelationVisitor struct {
	BaseAzmVisitor
}

func (*RelationVisitor) Visit

func (v *RelationVisitor) Visit(tree antlr.ParseTree) interface{}

func (*RelationVisitor) VisitDirectRel

func (v *RelationVisitor) VisitDirectRel(c *DirectRelContext) interface{}

func (*RelationVisitor) VisitRelation

func (v *RelationVisitor) VisitRelation(c *RelationContext) interface{}

func (*RelationVisitor) VisitSubjectRel

func (v *RelationVisitor) VisitSubjectRel(c *SubjectRelContext) interface{}

func (*RelationVisitor) VisitWildcardRel

func (v *RelationVisitor) VisitWildcardRel(c *WildcardRelContext) interface{}

type SubjectContext

type SubjectContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptySubjectContext

func NewEmptySubjectContext() *SubjectContext

func NewSubjectContext

func NewSubjectContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SubjectContext

func (*SubjectContext) Accept

func (s *SubjectContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*SubjectContext) AllID

func (s *SubjectContext) AllID() []antlr.TerminalNode

func (*SubjectContext) GetParser

func (s *SubjectContext) GetParser() antlr.Parser

func (*SubjectContext) GetRuleContext

func (s *SubjectContext) GetRuleContext() antlr.RuleContext

func (*SubjectContext) HASH

func (s *SubjectContext) HASH() antlr.TerminalNode

func (*SubjectContext) ID

func (s *SubjectContext) ID(i int) antlr.TerminalNode

func (*SubjectContext) IsSubjectContext

func (*SubjectContext) IsSubjectContext()

func (*SubjectContext) ToStringTree

func (s *SubjectContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type SubjectRelContext

type SubjectRelContext struct {
	RelContext
}

func NewSubjectRelContext

func NewSubjectRelContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *SubjectRelContext

func (*SubjectRelContext) Accept

func (s *SubjectRelContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*SubjectRelContext) GetRuleContext

func (s *SubjectRelContext) GetRuleContext() antlr.RuleContext

func (*SubjectRelContext) Subject

func (s *SubjectRelContext) Subject() ISubjectContext

type UnionContext

type UnionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyUnionContext

func NewEmptyUnionContext() *UnionContext

func NewUnionContext

func NewUnionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *UnionContext

func (*UnionContext) Accept

func (s *UnionContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*UnionContext) AllPerm

func (s *UnionContext) AllPerm() []IPermContext

func (*UnionContext) GetParser

func (s *UnionContext) GetParser() antlr.Parser

func (*UnionContext) GetRuleContext

func (s *UnionContext) GetRuleContext() antlr.RuleContext

func (*UnionContext) IsUnionContext

func (*UnionContext) IsUnionContext()

func (*UnionContext) Perm

func (s *UnionContext) Perm(i int) IPermContext

func (*UnionContext) ToStringTree

func (s *UnionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type UnionPermContext

type UnionPermContext struct {
	PermissionContext
}

func NewUnionPermContext

func NewUnionPermContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *UnionPermContext

func (*UnionPermContext) Accept

func (s *UnionPermContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*UnionPermContext) EOF

func (s *UnionPermContext) EOF() antlr.TerminalNode

func (*UnionPermContext) GetRuleContext

func (s *UnionPermContext) GetRuleContext() antlr.RuleContext

func (*UnionPermContext) Union

func (s *UnionPermContext) Union() IUnionContext

type WildcardContext

type WildcardContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyWildcardContext

func NewEmptyWildcardContext() *WildcardContext

func NewWildcardContext

func NewWildcardContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *WildcardContext

func (*WildcardContext) ASTERISK

func (s *WildcardContext) ASTERISK() antlr.TerminalNode

func (*WildcardContext) Accept

func (s *WildcardContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*WildcardContext) COLON

func (s *WildcardContext) COLON() antlr.TerminalNode

func (*WildcardContext) GetParser

func (s *WildcardContext) GetParser() antlr.Parser

func (*WildcardContext) GetRuleContext

func (s *WildcardContext) GetRuleContext() antlr.RuleContext

func (*WildcardContext) ID

func (s *WildcardContext) ID() antlr.TerminalNode

func (*WildcardContext) IsWildcardContext

func (*WildcardContext) IsWildcardContext()

func (*WildcardContext) ToStringTree

func (s *WildcardContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type WildcardRelContext

type WildcardRelContext struct {
	RelContext
}

func NewWildcardRelContext

func NewWildcardRelContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *WildcardRelContext

func (*WildcardRelContext) Accept

func (s *WildcardRelContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*WildcardRelContext) GetRuleContext

func (s *WildcardRelContext) GetRuleContext() antlr.RuleContext

func (*WildcardRelContext) Wildcard

func (s *WildcardRelContext) Wildcard() IWildcardContext

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL