C# Class Antlr4.Automata.LexerATNFactory

Inheritance: ParserATNFactory
Show file Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
COMMON_CONSTANTS int>.IDictionary

Protected Properties

Property Type Description
actionToIndexMap int>.IDictionary
indexToActionMap ILexerAction>.IDictionary

Public Methods

Method Description
Action ( ActionAST action ) : Handle
Action ( string action ) : Handle
CharSetLiteral ( GrammarAST charSetAST ) : Handle
CreateATN ( ) : ATN
GetCommonConstants ( ) : ICollection
GetSetFromCharSetLiteral ( GrammarAST charSetAST ) : Antlr4.Runtime.Misc.IntervalSet
LexerATNFactory ( LexerGrammar g ) : System.Collections.Generic
LexerAltCommands ( Handle alt, Handle cmds ) : Handle
LexerCallCommand ( GrammarAST ID, GrammarAST arg ) : Handle
LexerCommand ( GrammarAST ID ) : Handle
Range ( GrammarAST a, GrammarAST b ) : Handle
Rule ( GrammarAST ruleAST, string name, Handle blk ) : Handle
Set ( GrammarAST associatedAST, IList alts, bool invert ) : Handle
StringLiteral ( TerminalAST stringLiteralAST ) : Handle
TokenRef ( TerminalAST node ) : Handle

Protected Methods

Method Description
Action ( GrammarAST node, ILexerAction lexerAction ) : Handle
CheckRange ( GrammarAST leftNode, GrammarAST rightNode, int leftValue, int rightValue ) : bool
CheckSetCollision ( GrammarAST ast, Antlr4.Runtime.Misc.IntervalSet set, int el ) : void
CheckSetCollision ( GrammarAST ast, Antlr4.Runtime.Misc.IntervalSet set, int a, int b ) : void
GetLexerActionIndex ( ILexerAction lexerAction ) : int

Private Methods

Method Description
CheckCommands ( string command, Antlr.Runtime.IToken commandToken ) : void
CreateLexerAction ( [ ID, [ arg ) : ILexerAction
GetChannelConstantValue ( [ channelName, [ token ) : int?
GetModeConstantValue ( [ modeName, [ token ) : int?
GetTokenConstantValue ( [ tokenName, [ token ) : int?

Method Details

Action() public method

public Action ( ActionAST action ) : Handle
action Antlr4.Tool.Ast.ActionAST
return Handle

Action() protected method

protected Action ( GrammarAST node, ILexerAction lexerAction ) : Handle
node Antlr4.Tool.Ast.GrammarAST
lexerAction ILexerAction
return Handle

Action() public method

public Action ( string action ) : Handle
action string
return Handle

CharSetLiteral() public method

public CharSetLiteral ( GrammarAST charSetAST ) : Handle
charSetAST Antlr4.Tool.Ast.GrammarAST
return Handle

CheckRange() protected method

protected CheckRange ( GrammarAST leftNode, GrammarAST rightNode, int leftValue, int rightValue ) : bool
leftNode Antlr4.Tool.Ast.GrammarAST
rightNode Antlr4.Tool.Ast.GrammarAST
leftValue int
rightValue int
return bool

CheckSetCollision() protected method

protected CheckSetCollision ( GrammarAST ast, Antlr4.Runtime.Misc.IntervalSet set, int el ) : void
ast Antlr4.Tool.Ast.GrammarAST
set Antlr4.Runtime.Misc.IntervalSet
el int
return void

CheckSetCollision() protected method

protected CheckSetCollision ( GrammarAST ast, Antlr4.Runtime.Misc.IntervalSet set, int a, int b ) : void
ast Antlr4.Tool.Ast.GrammarAST
set Antlr4.Runtime.Misc.IntervalSet
a int
b int
return void

CreateATN() public method

public CreateATN ( ) : ATN
return Antlr4.Runtime.Atn.ATN

GetCommonConstants() public static method

public static GetCommonConstants ( ) : ICollection
return ICollection

GetLexerActionIndex() protected method

protected GetLexerActionIndex ( ILexerAction lexerAction ) : int
lexerAction ILexerAction
return int

GetSetFromCharSetLiteral() public method

public GetSetFromCharSetLiteral ( GrammarAST charSetAST ) : Antlr4.Runtime.Misc.IntervalSet
charSetAST Antlr4.Tool.Ast.GrammarAST
return Antlr4.Runtime.Misc.IntervalSet

LexerATNFactory() public method

public LexerATNFactory ( LexerGrammar g ) : System.Collections.Generic
g Antlr4.Tool.LexerGrammar
return System.Collections.Generic

LexerAltCommands() public method

public LexerAltCommands ( Handle alt, Handle cmds ) : Handle
alt Handle
cmds Handle
return Handle

LexerCallCommand() public method

public LexerCallCommand ( GrammarAST ID, GrammarAST arg ) : Handle
ID Antlr4.Tool.Ast.GrammarAST
arg Antlr4.Tool.Ast.GrammarAST
return Handle

LexerCommand() public method

public LexerCommand ( GrammarAST ID ) : Handle
ID Antlr4.Tool.Ast.GrammarAST
return Handle

Range() public method

public Range ( GrammarAST a, GrammarAST b ) : Handle
a Antlr4.Tool.Ast.GrammarAST
b Antlr4.Tool.Ast.GrammarAST
return Handle

Rule() public method

public Rule ( GrammarAST ruleAST, string name, Handle blk ) : Handle
ruleAST Antlr4.Tool.Ast.GrammarAST
name string
blk Handle
return Handle

Set() public method

public Set ( GrammarAST associatedAST, IList alts, bool invert ) : Handle
associatedAST Antlr4.Tool.Ast.GrammarAST
alts IList
invert bool
return Handle

StringLiteral() public method

public StringLiteral ( TerminalAST stringLiteralAST ) : Handle
stringLiteralAST Antlr4.Tool.Ast.TerminalAST
return Handle

TokenRef() public method

public TokenRef ( TerminalAST node ) : Handle
node Antlr4.Tool.Ast.TerminalAST
return Handle

Property Details

COMMON_CONSTANTS public static property

public static IDictionary COMMON_CONSTANTS
return int>.IDictionary

actionToIndexMap protected property

protected IDictionary actionToIndexMap
return int>.IDictionary

indexToActionMap protected property

protected IDictionary indexToActionMap
return ILexerAction>.IDictionary