C# Class Loyc.LLParserGenerator.LLParserGenerator.PrematchAnalysisVisitor

Figures out which terminals and and-predicates are "prematched". A prematched "Match()" call can be replaced with "Skip()" or "MatchAny()" in the generated code, a prematched Check() can be eliminated, to improve performance of the generated code.
Inheritance: Loyc.LLParserGenerator.RecursivePredVisitor
Afficher le fichier Open project: qwertie/ecsharp

Méthodes publiques

Méthode Description
Analyze ( Rule rule ) : void
PrematchAnalysisVisitor ( LLParserGenerator llpg ) : System
Visit ( Alts alts ) : void
Visit ( Gate pred ) : void

Private Methods

Méthode Description
ScanTree ( PredictionTree tree, Alts alts, DList path ) : void

Method Details

Analyze() public méthode

public Analyze ( Rule rule ) : void
rule Rule
Résultat void

PrematchAnalysisVisitor() public méthode

public PrematchAnalysisVisitor ( LLParserGenerator llpg ) : System
llpg LLParserGenerator
Résultat System

Visit() public méthode

public Visit ( Alts alts ) : void
alts Alts
Résultat void

Visit() public méthode

public Visit ( Gate pred ) : void
pred Gate
Résultat void