Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | Protected Member Functions | List of all members
Loyc.LLParserGenerator.LLParserGenerator.PredictionAnalysisVisitor Class Reference

Performs prediction analysis using the visitor pattern to visit the predicates in a rule. The process starts with Analyze(Rule). More...


Source file:
Inheritance diagram for Loyc.LLParserGenerator.LLParserGenerator.PredictionAnalysisVisitor:
Loyc.LLParserGenerator.RecursivePredVisitor Loyc.LLParserGenerator.PredVisitor

Remarks

Performs prediction analysis using the visitor pattern to visit the predicates in a rule. The process starts with Analyze(Rule).

This class primarily does prediction analysis. It generates prediction trees, placed in the Alts.PredictionTree field, which GenerateCodeVisitor then uses to generate code. It relies on the #region "Prediction analysis" in LLParserGenerator for the lowest-level analysis tasks.

Public Member Functions

 PredictionAnalysisVisitor (LLParserGenerator llpg)
 
void Analyze (Rule rule)
 
override void Visit (AndPred pred)
 
override void Visit (Gate pred)
 
override void Visit (Alts alts)
 
- Public Member Functions inherited from Loyc.LLParserGenerator.RecursivePredVisitor
override void Visit (Seq pred)
 
override void Visit (Alts pred)
 
override void Visit (AndPred pred)
 
override void Visit (Gate pred)
 
- Public Member Functions inherited from Loyc.LLParserGenerator.PredVisitor
void Visit (Pred pred)
 
virtual void Visit (TerminalPred term)
 
virtual void Visit (RuleRef rref)
 
virtual void Visit (EndOfRule end)
 
virtual void VisitOther (Pred pred)
 
void VisitChildrenOf (Seq pred)
 
void VisitChildrenOf (AndPred pred)
 
void VisitChildrenOf (Gate pred)
 
void VisitChildrenOf (Alts pred, bool includeError)
 

Protected Member Functions

PredictionTree ComputePredictionTree (KthSet[] kthSets)