idl

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNil

func IsNil(v any)

func IsNotNil

func IsNotNil(v any)

func IsWordOnly added in v0.20.0

func IsWordOnly(s string) bool

func NewObjectApiListener

func NewObjectApiListener(system *model.System) parser.ObjectApiListener

Types

type ObjectApiListener

type ObjectApiListener struct {
	antlr.ParseTreeListener
	System *model.System
	// contains filtered or unexported fields
}

func (*ObjectApiListener) EnterArrayRule

func (o *ObjectApiListener) EnterArrayRule(c *parser.ArrayRuleContext)

EnterArraySchema is called when entering the arraySchema production.

func (*ObjectApiListener) EnterDeclarationsRule

func (o *ObjectApiListener) EnterDeclarationsRule(c *parser.DeclarationsRuleContext)

EnterDeclarationsRule is called when entering the declarationsRule production.

func (*ObjectApiListener) EnterDocumentRule

func (o *ObjectApiListener) EnterDocumentRule(c *parser.DocumentRuleContext)

EnterDocumentRule is called when entering the documentRule production.

func (*ObjectApiListener) EnterEnumMemberRule

func (o *ObjectApiListener) EnterEnumMemberRule(c *parser.EnumMemberRuleContext)

EnterEnumMemberRule is called when entering the enumMemberRule production.

func (*ObjectApiListener) EnterEnumRule

func (o *ObjectApiListener) EnterEnumRule(c *parser.EnumRuleContext)

EnterEnumRule is called when entering the enumRule production.

func (*ObjectApiListener) EnterEveryRule

func (o *ObjectApiListener) EnterEveryRule(ctx antlr.ParserRuleContext)

func (*ObjectApiListener) EnterHeaderRule

func (o *ObjectApiListener) EnterHeaderRule(c *parser.HeaderRuleContext)

EnterHeaderRule is called when entering the headerRule production.

func (*ObjectApiListener) EnterImportRule

func (o *ObjectApiListener) EnterImportRule(c *parser.ImportRuleContext)

EnterImportRule is called when entering the importRule production.

func (*ObjectApiListener) EnterInterfaceMembersRule

func (o *ObjectApiListener) EnterInterfaceMembersRule(c *parser.InterfaceMembersRuleContext)

EnterInterfaceMembersRule is called when entering the interfaceMembersRule production.

func (*ObjectApiListener) EnterInterfaceRule

func (o *ObjectApiListener) EnterInterfaceRule(c *parser.InterfaceRuleContext)

EnterInterfaceRule is called when entering the InterfaceRule production.

func (*ObjectApiListener) EnterMetaRule added in v0.20.0

func (o *ObjectApiListener) EnterMetaRule(c *parser.MetaRuleContext)

func (*ObjectApiListener) EnterModuleRule

func (o *ObjectApiListener) EnterModuleRule(c *parser.ModuleRuleContext)

EnterModuleRule is called when entering the moduleRule production.

func (*ObjectApiListener) EnterOperationParamRule added in v0.6.0

func (o *ObjectApiListener) EnterOperationParamRule(c *parser.OperationParamRuleContext)

EnterOperationParamRule is called when entering the operationArgRule production.

func (*ObjectApiListener) EnterOperationReturnRule added in v0.6.0

func (o *ObjectApiListener) EnterOperationReturnRule(c *parser.OperationReturnRuleContext)

EnterOperationReturnRule is called when entering the operationReturnRule production.

func (*ObjectApiListener) EnterOperationRule added in v0.6.0

func (o *ObjectApiListener) EnterOperationRule(c *parser.OperationRuleContext)

EnterMethodRule is called when entering the methodRule production.

func (*ObjectApiListener) EnterPrimitiveSchema

func (o *ObjectApiListener) EnterPrimitiveSchema(c *parser.PrimitiveSchemaContext)

EnterPrimitiveSchema is called when entering the primitiveSchema production.

func (*ObjectApiListener) EnterPropertyRule

func (o *ObjectApiListener) EnterPropertyRule(c *parser.PropertyRuleContext)

EnterPropertyRule is called when entering the propertyRule production.

func (*ObjectApiListener) EnterSchemaRule

func (o *ObjectApiListener) EnterSchemaRule(c *parser.SchemaRuleContext)

EnterSchemaRule is called when entering the schemaRule production.

func (*ObjectApiListener) EnterSignalRule

func (o *ObjectApiListener) EnterSignalRule(c *parser.SignalRuleContext)

EnterSignalRule is called when entering the signalRule production.

func (*ObjectApiListener) EnterStructFieldRule

func (o *ObjectApiListener) EnterStructFieldRule(c *parser.StructFieldRuleContext)

EnterStructFieldRule is called when entering the structFieldRule production.

func (*ObjectApiListener) EnterStructRule

func (o *ObjectApiListener) EnterStructRule(c *parser.StructRuleContext)

EnterStructRule is called when entering the structRule production.

func (*ObjectApiListener) EnterSymbolSchema

func (o *ObjectApiListener) EnterSymbolSchema(c *parser.SymbolSchemaContext)

EnterReferenceSchema is called when entering the referenceSchema production.

func (*ObjectApiListener) ExitArrayRule

func (o *ObjectApiListener) ExitArrayRule(c *parser.ArrayRuleContext)

ExitArraySchema is called when exiting the arraySchema production.

func (*ObjectApiListener) ExitDeclarationsRule

func (o *ObjectApiListener) ExitDeclarationsRule(c *parser.DeclarationsRuleContext)

ExitDeclarationsRule is called when exiting the declarationsRule production.

func (*ObjectApiListener) ExitDocumentRule

func (o *ObjectApiListener) ExitDocumentRule(c *parser.DocumentRuleContext)

ExitDocumentRule is called when exiting the documentRule production.

func (*ObjectApiListener) ExitEnumMemberRule

func (o *ObjectApiListener) ExitEnumMemberRule(c *parser.EnumMemberRuleContext)

ExitEnumMemberRule is called when exiting the enumMemberRule production.

func (*ObjectApiListener) ExitEnumRule

func (o *ObjectApiListener) ExitEnumRule(c *parser.EnumRuleContext)

ExitEnumRule is called when exiting the enumRule production.

func (*ObjectApiListener) ExitEveryRule

func (o *ObjectApiListener) ExitEveryRule(ctx antlr.ParserRuleContext)

func (*ObjectApiListener) ExitHeaderRule

func (o *ObjectApiListener) ExitHeaderRule(c *parser.HeaderRuleContext)

ExitHeaderRule is called when exiting the headerRule production.

func (*ObjectApiListener) ExitImportRule

func (o *ObjectApiListener) ExitImportRule(c *parser.ImportRuleContext)

ExitImportRule is called when exiting the importRule production.

func (*ObjectApiListener) ExitInterfaceMembersRule

func (o *ObjectApiListener) ExitInterfaceMembersRule(c *parser.InterfaceMembersRuleContext)

ExitInterfaceMembersRule is called when exiting the interfaceMembersRule production.

func (*ObjectApiListener) ExitInterfaceRule

func (o *ObjectApiListener) ExitInterfaceRule(c *parser.InterfaceRuleContext)

ExitInterfaceRule is called when exiting the interfaceRule production.

func (*ObjectApiListener) ExitMetaRule added in v0.20.0

func (o *ObjectApiListener) ExitMetaRule(c *parser.MetaRuleContext)

func (*ObjectApiListener) ExitModuleRule

func (o *ObjectApiListener) ExitModuleRule(c *parser.ModuleRuleContext)

ExitModuleRule is called when exiting the moduleRule production.

func (*ObjectApiListener) ExitOperationParamRule added in v0.6.0

func (o *ObjectApiListener) ExitOperationParamRule(c *parser.OperationParamRuleContext)

ExitOperationParamRule is called when exiting the operationArgRule production.

func (*ObjectApiListener) ExitOperationReturnRule added in v0.6.0

func (o *ObjectApiListener) ExitOperationReturnRule(c *parser.OperationReturnRuleContext)

ExitOperationReturnRule is called when exiting the operationReturnRule production.

func (*ObjectApiListener) ExitOperationRule added in v0.6.0

func (o *ObjectApiListener) ExitOperationRule(c *parser.OperationRuleContext)

ExitOperationRule is called when exiting the operationRule production.

func (*ObjectApiListener) ExitPrimitiveSchema

func (o *ObjectApiListener) ExitPrimitiveSchema(c *parser.PrimitiveSchemaContext)

ExitPrimitiveSchema is called when exiting the primitiveSchema production.

func (*ObjectApiListener) ExitPropertyRule

func (o *ObjectApiListener) ExitPropertyRule(c *parser.PropertyRuleContext)

ExitPropertyRule is called when exiting the propertyRule production.

func (*ObjectApiListener) ExitSchemaRule

func (o *ObjectApiListener) ExitSchemaRule(c *parser.SchemaRuleContext)

ExitSchemaRule is called when exiting the schemaRule production.

func (*ObjectApiListener) ExitSignalRule

func (o *ObjectApiListener) ExitSignalRule(c *parser.SignalRuleContext)

ExitSignalRule is called when exiting the signalRule production.

func (*ObjectApiListener) ExitStructFieldRule

func (o *ObjectApiListener) ExitStructFieldRule(c *parser.StructFieldRuleContext)

ExitStructFieldRule is called when exiting the structFieldRule production.

func (*ObjectApiListener) ExitStructRule

func (o *ObjectApiListener) ExitStructRule(c *parser.StructRuleContext)

ExitStructRule is called when exiting the structRule production.

func (*ObjectApiListener) ExitSymbolSchema

func (o *ObjectApiListener) ExitSymbolSchema(c *parser.SymbolSchemaContext)

ExitReferenceSchema is called when exiting the referenceSchema production.

func (*ObjectApiListener) VisitErrorNode

func (o *ObjectApiListener) VisitErrorNode(node antlr.ErrorNode)

func (*ObjectApiListener) VisitTerminal

func (o *ObjectApiListener) VisitTerminal(node antlr.TerminalNode)

type Parser

type Parser struct {
	System *model.System
}

Parser defines the parser data

func NewParser

func NewParser(s *model.System) *Parser

NewParser creates a new parser with a named system

func (*Parser) ParseFile

func (p *Parser) ParseFile(file string) error

ParseFile parses a file containing idl document

func (*Parser) ParseString

func (p *Parser) ParseString(str string) error

ParseString parses a string containing idl document

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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