C# Класс 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.
Наследование: Loyc.LLParserGenerator.RecursivePredVisitor
Показать файл Открыть проект

Открытые методы

Метод Описание
Analyze ( Rule rule ) : void
PrematchAnalysisVisitor ( LLParserGenerator llpg ) : System
Visit ( Alts alts ) : void
Visit ( Gate pred ) : void

Приватные методы

Метод Описание
ScanTree ( PredictionTree tree, Alts alts, DList path ) : void

Описание методов

Analyze() публичный Метод

public Analyze ( Rule rule ) : void
rule Rule
Результат void

PrematchAnalysisVisitor() публичный Метод

public PrematchAnalysisVisitor ( LLParserGenerator llpg ) : System
llpg LLParserGenerator
Результат System

Visit() публичный Метод

public Visit ( Alts alts ) : void
alts Alts
Результат void

Visit() публичный Метод

public Visit ( Gate pred ) : void
pred Gate
Результат void