parser

package
v0.0.0-...-27647ab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChatLexerT__0          = 1
	ChatLexerT__1          = 2
	ChatLexerT__2          = 3
	ChatLexerT__3          = 4
	ChatLexerT__4          = 5
	ChatLexerT__5          = 6
	ChatLexerSAYS          = 7
	ChatLexerSHOUTS        = 8
	ChatLexerWORD          = 9
	ChatLexerWHITESPACE    = 10
	ChatLexerNEWLINE       = 11
	ChatLexerTEXT          = 12
	ChatLexerBLOCK_COMMENT = 13
	ChatLexerCOMMENT       = 14
)

ChatLexer tokens.

View Source
const (
	ChatParserEOF           = antlr.TokenEOF
	ChatParserT__0          = 1
	ChatParserT__1          = 2
	ChatParserT__2          = 3
	ChatParserT__3          = 4
	ChatParserT__4          = 5
	ChatParserT__5          = 6
	ChatParserSAYS          = 7
	ChatParserSHOUTS        = 8
	ChatParserWORD          = 9
	ChatParserWHITESPACE    = 10
	ChatParserNEWLINE       = 11
	ChatParserTEXT          = 12
	ChatParserBLOCK_COMMENT = 13
	ChatParserCOMMENT       = 14
)

ChatParser tokens.

View Source
const (
	ChatParserRULE_chat     = 0
	ChatParserRULE_line     = 1
	ChatParserRULE_name     = 2
	ChatParserRULE_command  = 3
	ChatParserRULE_message  = 4
	ChatParserRULE_emoticon = 5
	ChatParserRULE_link     = 6
	ChatParserRULE_color    = 7
	ChatParserRULE_mention  = 8
)

ChatParser rules.

Variables

This section is empty.

Functions

func ChatLexerInit

func ChatLexerInit()

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

func ChatParserInit

func ChatParserInit()

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

Types

type BaseChatListener

type BaseChatListener struct{}

BaseChatListener is a complete listener for a parse tree produced by ChatParser.

func (*BaseChatListener) EnterChat

func (s *BaseChatListener) EnterChat(ctx *ChatContext)

EnterChat is called when production chat is entered.

func (*BaseChatListener) EnterColor

func (s *BaseChatListener) EnterColor(ctx *ColorContext)

EnterColor is called when production color is entered.

func (*BaseChatListener) EnterCommand

func (s *BaseChatListener) EnterCommand(ctx *CommandContext)

EnterCommand is called when production command is entered.

func (*BaseChatListener) EnterEmoticon

func (s *BaseChatListener) EnterEmoticon(ctx *EmoticonContext)

EnterEmoticon is called when production emoticon is entered.

func (*BaseChatListener) EnterEveryRule

func (s *BaseChatListener) EnterEveryRule(ctx antlr.ParserRuleContext)

EnterEveryRule is called when any rule is entered.

func (*BaseChatListener) EnterLine

func (s *BaseChatListener) EnterLine(ctx *LineContext)

EnterLine is called when production line is entered.

func (s *BaseChatListener) EnterLink(ctx *LinkContext)

EnterLink is called when production link is entered.

func (*BaseChatListener) EnterMention

func (s *BaseChatListener) EnterMention(ctx *MentionContext)

EnterMention is called when production mention is entered.

func (*BaseChatListener) EnterMessage

func (s *BaseChatListener) EnterMessage(ctx *MessageContext)

EnterMessage is called when production message is entered.

func (*BaseChatListener) EnterName

func (s *BaseChatListener) EnterName(ctx *NameContext)

EnterName is called when production name is entered.

func (*BaseChatListener) ExitChat

func (s *BaseChatListener) ExitChat(ctx *ChatContext)

ExitChat is called when production chat is exited.

func (*BaseChatListener) ExitColor

func (s *BaseChatListener) ExitColor(ctx *ColorContext)

ExitColor is called when production color is exited.

func (*BaseChatListener) ExitCommand

func (s *BaseChatListener) ExitCommand(ctx *CommandContext)

ExitCommand is called when production command is exited.

func (*BaseChatListener) ExitEmoticon

func (s *BaseChatListener) ExitEmoticon(ctx *EmoticonContext)

ExitEmoticon is called when production emoticon is exited.

func (*BaseChatListener) ExitEveryRule

func (s *BaseChatListener) ExitEveryRule(ctx antlr.ParserRuleContext)

ExitEveryRule is called when any rule is exited.

func (*BaseChatListener) ExitLine

func (s *BaseChatListener) ExitLine(ctx *LineContext)

ExitLine is called when production line is exited.

func (s *BaseChatListener) ExitLink(ctx *LinkContext)

ExitLink is called when production link is exited.

func (*BaseChatListener) ExitMention

func (s *BaseChatListener) ExitMention(ctx *MentionContext)

ExitMention is called when production mention is exited.

func (*BaseChatListener) ExitMessage

func (s *BaseChatListener) ExitMessage(ctx *MessageContext)

ExitMessage is called when production message is exited.

func (*BaseChatListener) ExitName

func (s *BaseChatListener) ExitName(ctx *NameContext)

ExitName is called when production name is exited.

func (*BaseChatListener) VisitErrorNode

func (s *BaseChatListener) VisitErrorNode(node antlr.ErrorNode)

VisitErrorNode is called when an error node is visited.

func (*BaseChatListener) VisitTerminal

func (s *BaseChatListener) VisitTerminal(node antlr.TerminalNode)

VisitTerminal is called when a terminal node is visited.

type BaseChatVisitor

type BaseChatVisitor struct {
	*antlr.BaseParseTreeVisitor
}

func (*BaseChatVisitor) VisitChat

func (v *BaseChatVisitor) VisitChat(ctx *ChatContext) any

func (*BaseChatVisitor) VisitColor

func (v *BaseChatVisitor) VisitColor(ctx *ColorContext) any

func (*BaseChatVisitor) VisitCommand

func (v *BaseChatVisitor) VisitCommand(ctx *CommandContext) any

func (*BaseChatVisitor) VisitEmoticon

func (v *BaseChatVisitor) VisitEmoticon(ctx *EmoticonContext) any

func (*BaseChatVisitor) VisitLine

func (v *BaseChatVisitor) VisitLine(ctx *LineContext) any
func (v *BaseChatVisitor) VisitLink(ctx *LinkContext) any

func (*BaseChatVisitor) VisitMention

func (v *BaseChatVisitor) VisitMention(ctx *MentionContext) any

func (*BaseChatVisitor) VisitMessage

func (v *BaseChatVisitor) VisitMessage(ctx *MessageContext) any

func (*BaseChatVisitor) VisitName

func (v *BaseChatVisitor) VisitName(ctx *NameContext) any

type ChatContext

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

func NewChatContext

func NewChatContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ChatContext

func NewEmptyChatContext

func NewEmptyChatContext() *ChatContext

func (*ChatContext) Accept

func (s *ChatContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*ChatContext) AllLine

func (s *ChatContext) AllLine() []ILineContext

func (*ChatContext) EOF

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

func (*ChatContext) EnterRule

func (s *ChatContext) EnterRule(listener antlr.ParseTreeListener)

func (*ChatContext) ExitRule

func (s *ChatContext) ExitRule(listener antlr.ParseTreeListener)

func (*ChatContext) GetParser

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

func (*ChatContext) GetRuleContext

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

func (*ChatContext) IsChatContext

func (*ChatContext) IsChatContext()

func (*ChatContext) Line

func (s *ChatContext) Line(i int) ILineContext

func (*ChatContext) ToStringTree

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

type ChatLexer

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

func NewChatLexer

func NewChatLexer(input antlr.CharStream) *ChatLexer

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

type ChatListener

type ChatListener interface {
	antlr.ParseTreeListener

	// EnterChat is called when entering the chat production.
	EnterChat(c *ChatContext)

	// EnterLine is called when entering the line production.
	EnterLine(c *LineContext)

	// EnterName is called when entering the name production.
	EnterName(c *NameContext)

	// EnterCommand is called when entering the command production.
	EnterCommand(c *CommandContext)

	// EnterMessage is called when entering the message production.
	EnterMessage(c *MessageContext)

	// EnterEmoticon is called when entering the emoticon production.
	EnterEmoticon(c *EmoticonContext)

	// EnterLink is called when entering the link production.
	EnterLink(c *LinkContext)

	// EnterColor is called when entering the color production.
	EnterColor(c *ColorContext)

	// EnterMention is called when entering the mention production.
	EnterMention(c *MentionContext)

	// ExitChat is called when exiting the chat production.
	ExitChat(c *ChatContext)

	// ExitLine is called when exiting the line production.
	ExitLine(c *LineContext)

	// ExitName is called when exiting the name production.
	ExitName(c *NameContext)

	// ExitCommand is called when exiting the command production.
	ExitCommand(c *CommandContext)

	// ExitMessage is called when exiting the message production.
	ExitMessage(c *MessageContext)

	// ExitEmoticon is called when exiting the emoticon production.
	ExitEmoticon(c *EmoticonContext)

	// ExitLink is called when exiting the link production.
	ExitLink(c *LinkContext)

	// ExitColor is called when exiting the color production.
	ExitColor(c *ColorContext)

	// ExitMention is called when exiting the mention production.
	ExitMention(c *MentionContext)
}

ChatListener is a complete listener for a parse tree produced by ChatParser.

type ChatParser

type ChatParser struct {
	*antlr.BaseParser
}

func NewChatParser

func NewChatParser(input antlr.TokenStream) *ChatParser

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

func (*ChatParser) Chat

func (p *ChatParser) Chat() (localctx IChatContext)

func (*ChatParser) Color

func (p *ChatParser) Color() (localctx IColorContext)

func (*ChatParser) Command

func (p *ChatParser) Command() (localctx ICommandContext)

func (*ChatParser) Emoticon

func (p *ChatParser) Emoticon() (localctx IEmoticonContext)

func (*ChatParser) Line

func (p *ChatParser) Line() (localctx ILineContext)
func (p *ChatParser) Link() (localctx ILinkContext)

func (*ChatParser) Mention

func (p *ChatParser) Mention() (localctx IMentionContext)

func (*ChatParser) Message

func (p *ChatParser) Message() (localctx IMessageContext)

func (*ChatParser) Name

func (p *ChatParser) Name() (localctx INameContext)

type ChatVisitor

type ChatVisitor interface {
	antlr.ParseTreeVisitor

	// Visit a parse tree produced by ChatParser#chat.
	VisitChat(ctx *ChatContext) any

	// Visit a parse tree produced by ChatParser#line.
	VisitLine(ctx *LineContext) any

	// Visit a parse tree produced by ChatParser#name.
	VisitName(ctx *NameContext) any

	// Visit a parse tree produced by ChatParser#command.
	VisitCommand(ctx *CommandContext) any

	// Visit a parse tree produced by ChatParser#message.
	VisitMessage(ctx *MessageContext) any

	// Visit a parse tree produced by ChatParser#emoticon.
	VisitEmoticon(ctx *EmoticonContext) any

	// Visit a parse tree produced by ChatParser#link.
	VisitLink(ctx *LinkContext) any

	// Visit a parse tree produced by ChatParser#color.
	VisitColor(ctx *ColorContext) any

	// Visit a parse tree produced by ChatParser#mention.
	VisitMention(ctx *MentionContext) any
}

A complete Visitor for a parse tree produced by ChatParser.

type ColorContext

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

func NewColorContext

func NewColorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ColorContext

func NewEmptyColorContext

func NewEmptyColorContext() *ColorContext

func (*ColorContext) Accept

func (s *ColorContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*ColorContext) EnterRule

func (s *ColorContext) EnterRule(listener antlr.ParseTreeListener)

func (*ColorContext) ExitRule

func (s *ColorContext) ExitRule(listener antlr.ParseTreeListener)

func (*ColorContext) GetParser

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

func (*ColorContext) GetRuleContext

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

func (*ColorContext) IsColorContext

func (*ColorContext) IsColorContext()

func (*ColorContext) Message

func (s *ColorContext) Message() IMessageContext

func (*ColorContext) ToStringTree

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

func (*ColorContext) WORD

func (s *ColorContext) WORD() antlr.TerminalNode

type CommandContext

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

func NewCommandContext

func NewCommandContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CommandContext

func NewEmptyCommandContext

func NewEmptyCommandContext() *CommandContext

func (*CommandContext) Accept

func (s *CommandContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*CommandContext) EnterRule

func (s *CommandContext) EnterRule(listener antlr.ParseTreeListener)

func (*CommandContext) ExitRule

func (s *CommandContext) ExitRule(listener antlr.ParseTreeListener)

func (*CommandContext) GetParser

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

func (*CommandContext) GetRuleContext

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

func (*CommandContext) IsCommandContext

func (*CommandContext) IsCommandContext()

func (*CommandContext) SAYS

func (s *CommandContext) SAYS() antlr.TerminalNode

func (*CommandContext) SHOUTS

func (s *CommandContext) SHOUTS() antlr.TerminalNode

func (*CommandContext) ToStringTree

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

func (*CommandContext) WHITESPACE

func (s *CommandContext) WHITESPACE() antlr.TerminalNode

type EmoticonContext

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

func NewEmoticonContext

func NewEmoticonContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EmoticonContext

func NewEmptyEmoticonContext

func NewEmptyEmoticonContext() *EmoticonContext

func (*EmoticonContext) Accept

func (s *EmoticonContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*EmoticonContext) EnterRule

func (s *EmoticonContext) EnterRule(listener antlr.ParseTreeListener)

func (*EmoticonContext) ExitRule

func (s *EmoticonContext) ExitRule(listener antlr.ParseTreeListener)

func (*EmoticonContext) GetParser

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

func (*EmoticonContext) GetRuleContext

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

func (*EmoticonContext) IsEmoticonContext

func (*EmoticonContext) IsEmoticonContext()

func (*EmoticonContext) ToStringTree

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

type IChatContext

type IChatContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	EOF() antlr.TerminalNode
	AllLine() []ILineContext
	Line(i int) ILineContext

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

IChatContext is an interface to support dynamic dispatch.

type IColorContext

type IColorContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	WORD() antlr.TerminalNode
	Message() IMessageContext

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

IColorContext is an interface to support dynamic dispatch.

type ICommandContext

type ICommandContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	WHITESPACE() antlr.TerminalNode
	SAYS() antlr.TerminalNode
	SHOUTS() antlr.TerminalNode

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

ICommandContext is an interface to support dynamic dispatch.

type IEmoticonContext

type IEmoticonContext interface {
	antlr.ParserRuleContext

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

IEmoticonContext is an interface to support dynamic dispatch.

type ILineContext

type ILineContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	NEWLINE() antlr.TerminalNode
	Name() INameContext
	Command() ICommandContext
	Message() IMessageContext

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

ILineContext is an interface to support dynamic dispatch.

type ILinkContext

type ILinkContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllTEXT() []antlr.TerminalNode
	TEXT(i int) antlr.TerminalNode

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

ILinkContext is an interface to support dynamic dispatch.

type IMentionContext

type IMentionContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	WORD() antlr.TerminalNode

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

IMentionContext is an interface to support dynamic dispatch.

type IMessageContext

type IMessageContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllEmoticon() []IEmoticonContext
	Emoticon(i int) IEmoticonContext
	AllLink() []ILinkContext
	Link(i int) ILinkContext
	AllColor() []IColorContext
	Color(i int) IColorContext
	AllMention() []IMentionContext
	Mention(i int) IMentionContext
	AllWORD() []antlr.TerminalNode
	WORD(i int) antlr.TerminalNode
	AllWHITESPACE() []antlr.TerminalNode
	WHITESPACE(i int) antlr.TerminalNode

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

IMessageContext is an interface to support dynamic dispatch.

type INameContext

type INameContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	WORD() antlr.TerminalNode
	WHITESPACE() antlr.TerminalNode

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

INameContext is an interface to support dynamic dispatch.

type LineContext

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

func NewEmptyLineContext

func NewEmptyLineContext() *LineContext

func NewLineContext

func NewLineContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LineContext

func (*LineContext) Accept

func (s *LineContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*LineContext) Command

func (s *LineContext) Command() ICommandContext

func (*LineContext) EnterRule

func (s *LineContext) EnterRule(listener antlr.ParseTreeListener)

func (*LineContext) ExitRule

func (s *LineContext) ExitRule(listener antlr.ParseTreeListener)

func (*LineContext) GetParser

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

func (*LineContext) GetRuleContext

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

func (*LineContext) IsLineContext

func (*LineContext) IsLineContext()

func (*LineContext) Message

func (s *LineContext) Message() IMessageContext

func (*LineContext) NEWLINE

func (s *LineContext) NEWLINE() antlr.TerminalNode

func (*LineContext) Name

func (s *LineContext) Name() INameContext

func (*LineContext) ToStringTree

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

type LinkContext

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

func NewEmptyLinkContext

func NewEmptyLinkContext() *LinkContext

func NewLinkContext

func NewLinkContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LinkContext

func (*LinkContext) Accept

func (s *LinkContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*LinkContext) AllTEXT

func (s *LinkContext) AllTEXT() []antlr.TerminalNode

func (*LinkContext) EnterRule

func (s *LinkContext) EnterRule(listener antlr.ParseTreeListener)

func (*LinkContext) ExitRule

func (s *LinkContext) ExitRule(listener antlr.ParseTreeListener)

func (*LinkContext) GetParser

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

func (*LinkContext) GetRuleContext

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

func (*LinkContext) IsLinkContext

func (*LinkContext) IsLinkContext()

func (*LinkContext) TEXT

func (s *LinkContext) TEXT(i int) antlr.TerminalNode

func (*LinkContext) ToStringTree

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

type MentionContext

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

func NewEmptyMentionContext

func NewEmptyMentionContext() *MentionContext

func NewMentionContext

func NewMentionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MentionContext

func (*MentionContext) Accept

func (s *MentionContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*MentionContext) EnterRule

func (s *MentionContext) EnterRule(listener antlr.ParseTreeListener)

func (*MentionContext) ExitRule

func (s *MentionContext) ExitRule(listener antlr.ParseTreeListener)

func (*MentionContext) GetParser

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

func (*MentionContext) GetRuleContext

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

func (*MentionContext) IsMentionContext

func (*MentionContext) IsMentionContext()

func (*MentionContext) ToStringTree

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

func (*MentionContext) WORD

func (s *MentionContext) WORD() antlr.TerminalNode

type MessageContext

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

func NewEmptyMessageContext

func NewEmptyMessageContext() *MessageContext

func NewMessageContext

func NewMessageContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MessageContext

func (*MessageContext) Accept

func (s *MessageContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*MessageContext) AllColor

func (s *MessageContext) AllColor() []IColorContext

func (*MessageContext) AllEmoticon

func (s *MessageContext) AllEmoticon() []IEmoticonContext
func (s *MessageContext) AllLink() []ILinkContext

func (*MessageContext) AllMention

func (s *MessageContext) AllMention() []IMentionContext

func (*MessageContext) AllWHITESPACE

func (s *MessageContext) AllWHITESPACE() []antlr.TerminalNode

func (*MessageContext) AllWORD

func (s *MessageContext) AllWORD() []antlr.TerminalNode

func (*MessageContext) Color

func (s *MessageContext) Color(i int) IColorContext

func (*MessageContext) Emoticon

func (s *MessageContext) Emoticon(i int) IEmoticonContext

func (*MessageContext) EnterRule

func (s *MessageContext) EnterRule(listener antlr.ParseTreeListener)

func (*MessageContext) ExitRule

func (s *MessageContext) ExitRule(listener antlr.ParseTreeListener)

func (*MessageContext) GetParser

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

func (*MessageContext) GetRuleContext

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

func (*MessageContext) IsMessageContext

func (*MessageContext) IsMessageContext()
func (s *MessageContext) Link(i int) ILinkContext

func (*MessageContext) Mention

func (s *MessageContext) Mention(i int) IMentionContext

func (*MessageContext) ToStringTree

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

func (*MessageContext) WHITESPACE

func (s *MessageContext) WHITESPACE(i int) antlr.TerminalNode

func (*MessageContext) WORD

func (s *MessageContext) WORD(i int) antlr.TerminalNode

type NameContext

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

func NewEmptyNameContext

func NewEmptyNameContext() *NameContext

func NewNameContext

func NewNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NameContext

func (*NameContext) Accept

func (s *NameContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*NameContext) EnterRule

func (s *NameContext) EnterRule(listener antlr.ParseTreeListener)

func (*NameContext) ExitRule

func (s *NameContext) ExitRule(listener antlr.ParseTreeListener)

func (*NameContext) GetParser

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

func (*NameContext) GetRuleContext

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

func (*NameContext) IsNameContext

func (*NameContext) IsNameContext()

func (*NameContext) ToStringTree

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

func (*NameContext) WHITESPACE

func (s *NameContext) WHITESPACE() antlr.TerminalNode

func (*NameContext) WORD

func (s *NameContext) WORD() antlr.TerminalNode

Jump to

Keyboard shortcuts

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