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
파일 보기 프로젝트 열기: qwertie/ecsharp

공개 메소드들

메소드 설명
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