C# Class Antlr4.Semantics.BasicSemanticChecks

Inheritance: GrammarTreeVisitor
Afficher le fichier Open project: sharwell/antlr4cs Class Usage Examples

Méthodes publiques

Свойство Type Description
checkAssocElementOption bool
errMgr Antlr4.Tool.ErrorManager
g Antlr4.Tool.Grammar
ruleCollector RuleCollector
validImportTypes int>.Runtime.Misc.MultiMap

Protected Properties

Свойство Type Description
nonFragmentRuleCount int

Méthodes publiques

Méthode Description
ActionInAlt ( ActionAST action ) : void
BasicSemanticChecks ( Grammar g, RuleCollector ruleCollector ) : System.Collections.Generic
BlockOption ( GrammarAST ID, GrammarAST valueAST ) : void
DefineChannel ( GrammarAST ID ) : void
DefineToken ( GrammarAST ID ) : void
DiscoverGrammar ( GrammarRootAST root, GrammarAST ID ) : void
DiscoverLexerRule ( RuleAST rule, GrammarAST ID, IList modifiers, GrammarAST block ) : void
DiscoverRule ( RuleAST rule, GrammarAST ID, IList modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, IList actions, GrammarAST block ) : void
DiscoverRules ( GrammarAST rules ) : void
ElementOption ( GrammarASTWithOptions elem, GrammarAST ID, GrammarAST valueAST ) : void
FinishGrammar ( GrammarRootAST root, GrammarAST ID ) : void
FinishPrequels ( GrammarAST firstPrequel ) : void
FinishRule ( RuleAST rule, GrammarAST ID, GrammarAST block ) : void
GetErrorManager ( ) : ErrorManager
GrammarOption ( GrammarAST ID, GrammarAST valueAST ) : void
ImportGrammar ( GrammarAST label, GrammarAST ID ) : void
Label ( GrammarAST op, GrammarAST ID, GrammarAST element ) : void
ModeDef ( GrammarAST m, GrammarAST ID ) : void
Process ( ) : void
RuleOption ( GrammarAST ID, GrammarAST valueAST ) : void
RuleRef ( GrammarAST @ref, ActionAST arg ) : void

Méthodes protégées

Méthode Description
CheckElementIsOuterMostInSingleAlt ( GrammarAST tree ) : void
EnterChannelsSpec ( GrammarAST tree ) : void
EnterLabeledLexerElement ( GrammarAST tree ) : void
EnterLexerCommand ( GrammarAST tree ) : void
EnterLexerElement ( GrammarAST tree ) : void
EnterMode ( GrammarAST tree ) : void
EnterTerminal ( GrammarAST tree ) : void
ExitLexerRule ( GrammarAST tree ) : void
ExitMode ( GrammarAST tree ) : void

Private Methods

Méthode Description
BasicSemanticChecks ( ) : System.Collections.Generic
CheckChannelDefinition ( Antlr.Runtime.IToken tokenID ) : void
CheckElementOptions ( GrammarASTWithOptions elem, GrammarAST ID, GrammarAST valueAST ) : bool
CheckGrammarName ( Antlr.Runtime.IToken nameToken ) : void
CheckImport ( Antlr.Runtime.IToken importID ) : void
CheckInvalidRuleDef ( Antlr.Runtime.IToken ruleID ) : void
CheckInvalidRuleRef ( Antlr.Runtime.IToken ruleID ) : void
CheckNumPrequels ( IList options, IList imports, IList tokens ) : void
CheckNumRules ( GrammarAST rulesNode ) : void
CheckOptions ( GrammarAST parent, Antlr.Runtime.IToken optionID, GrammarAST valueAST ) : bool
CheckRuleRefOptions ( RuleRefAST elem, GrammarAST ID, GrammarAST valueAST ) : bool
CheckTokenDefinition ( Antlr.Runtime.IToken tokenID ) : void
CheckTokenOptions ( TerminalAST elem, GrammarAST ID, GrammarAST valueAST ) : bool
LegalGrammarOption ( string key ) : bool

Method Details

ActionInAlt() public méthode

public ActionInAlt ( ActionAST action ) : void
action Antlr4.Tool.Ast.ActionAST
Résultat void

BasicSemanticChecks() public méthode

public BasicSemanticChecks ( Grammar g, RuleCollector ruleCollector ) : System.Collections.Generic
g Antlr4.Tool.Grammar
ruleCollector RuleCollector
Résultat System.Collections.Generic

BlockOption() public méthode

public BlockOption ( GrammarAST ID, GrammarAST valueAST ) : void
ID Antlr4.Tool.Ast.GrammarAST
valueAST Antlr4.Tool.Ast.GrammarAST
Résultat void

CheckElementIsOuterMostInSingleAlt() protected méthode

protected CheckElementIsOuterMostInSingleAlt ( GrammarAST tree ) : void
tree Antlr4.Tool.Ast.GrammarAST
Résultat void

DefineChannel() public méthode

public DefineChannel ( GrammarAST ID ) : void
ID Antlr4.Tool.Ast.GrammarAST
Résultat void

DefineToken() public méthode

public DefineToken ( GrammarAST ID ) : void
ID Antlr4.Tool.Ast.GrammarAST
Résultat void

DiscoverGrammar() public méthode

public DiscoverGrammar ( GrammarRootAST root, GrammarAST ID ) : void
root Antlr4.Tool.Ast.GrammarRootAST
ID Antlr4.Tool.Ast.GrammarAST
Résultat void

DiscoverLexerRule() public méthode

public DiscoverLexerRule ( RuleAST rule, GrammarAST ID, IList modifiers, GrammarAST block ) : void
rule Antlr4.Tool.Ast.RuleAST
ID Antlr4.Tool.Ast.GrammarAST
modifiers IList
block Antlr4.Tool.Ast.GrammarAST
Résultat void

DiscoverRule() public méthode

public DiscoverRule ( RuleAST rule, GrammarAST ID, IList modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, IList actions, GrammarAST block ) : void
rule Antlr4.Tool.Ast.RuleAST
ID Antlr4.Tool.Ast.GrammarAST
modifiers IList
arg Antlr4.Tool.Ast.ActionAST
returns Antlr4.Tool.Ast.ActionAST
thrws Antlr4.Tool.Ast.GrammarAST
options Antlr4.Tool.Ast.GrammarAST
locals Antlr4.Tool.Ast.ActionAST
actions IList
block Antlr4.Tool.Ast.GrammarAST
Résultat void

DiscoverRules() public méthode

public DiscoverRules ( GrammarAST rules ) : void
rules Antlr4.Tool.Ast.GrammarAST
Résultat void

ElementOption() public méthode

public ElementOption ( GrammarASTWithOptions elem, GrammarAST ID, GrammarAST valueAST ) : void
elem Antlr4.Tool.Ast.GrammarASTWithOptions
ID Antlr4.Tool.Ast.GrammarAST
valueAST Antlr4.Tool.Ast.GrammarAST
Résultat void

EnterChannelsSpec() protected méthode

protected EnterChannelsSpec ( GrammarAST tree ) : void
tree Antlr4.Tool.Ast.GrammarAST
Résultat void

EnterLabeledLexerElement() protected méthode

protected EnterLabeledLexerElement ( GrammarAST tree ) : void
tree Antlr4.Tool.Ast.GrammarAST
Résultat void

EnterLexerCommand() protected méthode

protected EnterLexerCommand ( GrammarAST tree ) : void
tree Antlr4.Tool.Ast.GrammarAST
Résultat void

EnterLexerElement() protected méthode

protected EnterLexerElement ( GrammarAST tree ) : void
tree Antlr4.Tool.Ast.GrammarAST
Résultat void

EnterMode() protected méthode

protected EnterMode ( GrammarAST tree ) : void
tree Antlr4.Tool.Ast.GrammarAST
Résultat void

EnterTerminal() protected méthode

protected EnterTerminal ( GrammarAST tree ) : void
tree Antlr4.Tool.Ast.GrammarAST
Résultat void

ExitLexerRule() protected méthode

protected ExitLexerRule ( GrammarAST tree ) : void
tree Antlr4.Tool.Ast.GrammarAST
Résultat void

ExitMode() protected méthode

protected ExitMode ( GrammarAST tree ) : void
tree Antlr4.Tool.Ast.GrammarAST
Résultat void

FinishGrammar() public méthode

public FinishGrammar ( GrammarRootAST root, GrammarAST ID ) : void
root Antlr4.Tool.Ast.GrammarRootAST
ID Antlr4.Tool.Ast.GrammarAST
Résultat void

FinishPrequels() public méthode

public FinishPrequels ( GrammarAST firstPrequel ) : void
firstPrequel Antlr4.Tool.Ast.GrammarAST
Résultat void

FinishRule() public méthode

public FinishRule ( RuleAST rule, GrammarAST ID, GrammarAST block ) : void
rule Antlr4.Tool.Ast.RuleAST
ID Antlr4.Tool.Ast.GrammarAST
block Antlr4.Tool.Ast.GrammarAST
Résultat void

GetErrorManager() public méthode

public GetErrorManager ( ) : ErrorManager
Résultat Antlr4.Tool.ErrorManager

GrammarOption() public méthode

public GrammarOption ( GrammarAST ID, GrammarAST valueAST ) : void
ID Antlr4.Tool.Ast.GrammarAST
valueAST Antlr4.Tool.Ast.GrammarAST
Résultat void

ImportGrammar() public méthode

public ImportGrammar ( GrammarAST label, GrammarAST ID ) : void
label Antlr4.Tool.Ast.GrammarAST
ID Antlr4.Tool.Ast.GrammarAST
Résultat void

Label() public méthode

public Label ( GrammarAST op, GrammarAST ID, GrammarAST element ) : void
op Antlr4.Tool.Ast.GrammarAST
ID Antlr4.Tool.Ast.GrammarAST
element Antlr4.Tool.Ast.GrammarAST
Résultat void

ModeDef() public méthode

public ModeDef ( GrammarAST m, GrammarAST ID ) : void
m Antlr4.Tool.Ast.GrammarAST
ID Antlr4.Tool.Ast.GrammarAST
Résultat void

Process() public méthode

public Process ( ) : void
Résultat void

RuleOption() public méthode

public RuleOption ( GrammarAST ID, GrammarAST valueAST ) : void
ID Antlr4.Tool.Ast.GrammarAST
valueAST Antlr4.Tool.Ast.GrammarAST
Résultat void

RuleRef() public méthode

public RuleRef ( GrammarAST @ref, ActionAST arg ) : void
@ref Antlr4.Tool.Ast.GrammarAST
arg Antlr4.Tool.Ast.ActionAST
Résultat void

Property Details

checkAssocElementOption public_oe property

public bool checkAssocElementOption
Résultat bool

errMgr public_oe property

public ErrorManager,Antlr4.Tool errMgr
Résultat Antlr4.Tool.ErrorManager

g public_oe property

public Grammar,Antlr4.Tool g
Résultat Antlr4.Tool.Grammar

nonFragmentRuleCount protected_oe property

protected int nonFragmentRuleCount
Résultat int

ruleCollector public_oe property

public RuleCollector,Antlr4.Semantics ruleCollector
Résultat RuleCollector

validImportTypes public_oe static_oe property

public static Runtime.Misc.MultiMap validImportTypes
Résultat int>.Runtime.Misc.MultiMap