C# Class Antlr4.Codegen.Model.ElementFrequenciesVisitor

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

Public Methods

Method Description
ElementFrequenciesVisitor ( Grammar grammar, Antlr.Runtime.Tree.ITreeNodeStream input ) : System.Collections.Generic
RuleRef ( GrammarAST @ref, ActionAST arg ) : void
TokenRef ( TerminalAST @ref ) : void

Protected Methods

Method Description
CombineAndClip ( FrequencySet a, FrequencySet b, int clip ) : FrequencySet
CombineMax ( FrequencySet a, FrequencySet b ) : FrequencySet
EnterAlternative ( AltAST tree ) : void
EnterElement ( GrammarAST tree ) : void
EnterLexerAlternative ( GrammarAST tree ) : void
EnterLexerElement ( GrammarAST tree ) : void
ExitAlternative ( AltAST tree ) : void
ExitElement ( GrammarAST tree ) : void
ExitLexerAlternative ( GrammarAST tree ) : void
ExitLexerElement ( GrammarAST tree ) : void
ExitLexerSubrule ( GrammarAST tree ) : void
ExitSubrule ( GrammarAST tree ) : void
combineMin ( FrequencySet a, FrequencySet b ) : FrequencySet

Private Methods

Method Description
GetMinFrequencies ( ) : FrequencySet

Method Details

CombineAndClip() protected static method

protected static CombineAndClip ( FrequencySet a, FrequencySet b, int clip ) : FrequencySet
a FrequencySet
b FrequencySet
clip int
return FrequencySet

CombineMax() protected static method

protected static CombineMax ( FrequencySet a, FrequencySet b ) : FrequencySet
a FrequencySet
b FrequencySet
return FrequencySet

ElementFrequenciesVisitor() public method

public ElementFrequenciesVisitor ( Grammar grammar, Antlr.Runtime.Tree.ITreeNodeStream input ) : System.Collections.Generic
grammar Antlr4.Tool.Grammar
input Antlr.Runtime.Tree.ITreeNodeStream
return System.Collections.Generic

EnterAlternative() protected method

protected EnterAlternative ( AltAST tree ) : void
tree AltAST
return void

EnterElement() protected method

protected EnterElement ( GrammarAST tree ) : void
tree GrammarAST
return void

EnterLexerAlternative() protected method

protected EnterLexerAlternative ( GrammarAST tree ) : void
tree GrammarAST
return void

EnterLexerElement() protected method

protected EnterLexerElement ( GrammarAST tree ) : void
tree GrammarAST
return void

ExitAlternative() protected method

protected ExitAlternative ( AltAST tree ) : void
tree AltAST
return void

ExitElement() protected method

protected ExitElement ( GrammarAST tree ) : void
tree GrammarAST
return void

ExitLexerAlternative() protected method

protected ExitLexerAlternative ( GrammarAST tree ) : void
tree GrammarAST
return void

ExitLexerElement() protected method

protected ExitLexerElement ( GrammarAST tree ) : void
tree GrammarAST
return void

ExitLexerSubrule() protected method

protected ExitLexerSubrule ( GrammarAST tree ) : void
tree GrammarAST
return void

ExitSubrule() protected method

protected ExitSubrule ( GrammarAST tree ) : void
tree GrammarAST
return void

RuleRef() public method

public RuleRef ( GrammarAST @ref, ActionAST arg ) : void
@ref GrammarAST
arg ActionAST
return void

TokenRef() public method

public TokenRef ( TerminalAST @ref ) : void
@ref TerminalAST
return void

combineMin() protected static method

protected static combineMin ( FrequencySet a, FrequencySet b ) : FrequencySet
a FrequencySet
b FrequencySet
return FrequencySet