C# Class Antlr4.Analysis.LeftFactoringRuleTransformer

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

Méthodes publiques

Свойство Type Description
LEFTFACTOR string
SUPPRESS_ACCESSOR string
_ast Antlr4.Tool.Ast.GrammarRootAST
_g Antlr4.Tool.Grammar
_rules Rule>.IDictionary
_tool AntlrTool

Méthodes publiques

Méthode Description
LeftFactoringRuleTransformer ( [ ast, Rule>.[ rules, [ g ) : System.Collections.Generic
TranslateLeftFactoredRules ( ) : void

Méthodes protégées

Méthode Description
CreateLeftFactoredRuleVariant ( Rule rule, string factoredElement ) : RuleVariants
ExpandOptionalQuantifiersForAlt ( GrammarAST alt ) : GrammarAST
ExpandOptionalQuantifiersForBlock ( GrammarAST block, bool variant ) : bool
TranslateLeftFactoredAlternative ( GrammarAST alternative, string factoredRule, bool variant, DecisionFactorMode mode, bool includeFactoredElement ) : GrammarAST
TranslateLeftFactoredDecision ( GrammarAST block, string factoredRule, bool variant, DecisionFactorMode mode, bool includeFactoredElement ) : bool
TranslateLeftFactoredElement ( GrammarAST element, string factoredRule, bool variant, DecisionFactorMode mode, bool includeFactoredElement ) : GrammarAST

Method Details

CreateLeftFactoredRuleVariant() protected méthode

protected CreateLeftFactoredRuleVariant ( Rule rule, string factoredElement ) : RuleVariants
rule Antlr4.Tool.Rule
factoredElement string
Résultat RuleVariants

ExpandOptionalQuantifiersForAlt() protected méthode

protected ExpandOptionalQuantifiersForAlt ( GrammarAST alt ) : GrammarAST
alt Antlr4.Tool.Ast.GrammarAST
Résultat Antlr4.Tool.Ast.GrammarAST

ExpandOptionalQuantifiersForBlock() protected méthode

protected ExpandOptionalQuantifiersForBlock ( GrammarAST block, bool variant ) : bool
block Antlr4.Tool.Ast.GrammarAST
variant bool
Résultat bool

LeftFactoringRuleTransformer() public méthode

public LeftFactoringRuleTransformer ( [ ast, Rule>.[ rules, [ g ) : System.Collections.Generic
ast [
rules Rule>.[
g [
Résultat System.Collections.Generic

TranslateLeftFactoredAlternative() protected méthode

protected TranslateLeftFactoredAlternative ( GrammarAST alternative, string factoredRule, bool variant, DecisionFactorMode mode, bool includeFactoredElement ) : GrammarAST
alternative Antlr4.Tool.Ast.GrammarAST
factoredRule string
variant bool
mode DecisionFactorMode
includeFactoredElement bool
Résultat Antlr4.Tool.Ast.GrammarAST

TranslateLeftFactoredDecision() protected méthode

protected TranslateLeftFactoredDecision ( GrammarAST block, string factoredRule, bool variant, DecisionFactorMode mode, bool includeFactoredElement ) : bool
block Antlr4.Tool.Ast.GrammarAST
factoredRule string
variant bool
mode DecisionFactorMode
includeFactoredElement bool
Résultat bool

TranslateLeftFactoredElement() protected méthode

protected TranslateLeftFactoredElement ( GrammarAST element, string factoredRule, bool variant, DecisionFactorMode mode, bool includeFactoredElement ) : GrammarAST
element Antlr4.Tool.Ast.GrammarAST
factoredRule string
variant bool
mode DecisionFactorMode
includeFactoredElement bool
Résultat Antlr4.Tool.Ast.GrammarAST

TranslateLeftFactoredRules() public méthode

public TranslateLeftFactoredRules ( ) : void
Résultat void

Property Details

LEFTFACTOR public_oe static_oe property

public static string LEFTFACTOR
Résultat string

SUPPRESS_ACCESSOR public_oe static_oe property

public static string SUPPRESS_ACCESSOR
Résultat string

_ast public_oe property

public GrammarRootAST,Antlr4.Tool.Ast _ast
Résultat Antlr4.Tool.Ast.GrammarRootAST

_g public_oe property

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

_rules public_oe property

public IDictionary _rules
Résultat Rule>.IDictionary

_tool public_oe property

public AntlrTool _tool
Résultat AntlrTool