Enhanced C#
Language of your choice: library documentation
Nested classes | Public Member Functions | Static Public Member Functions | List of all members
Loyc.LLParserGenerator.AutoValueSaverVisitor Class Reference

Helper class invoked just after StageTwoParser. Its job is to create variables referenced by labels (label:item) and by code blocks ($RuleName), to modify the code blocks to remove the $ operator, and to update the ResultSaver of each labeled predicate. Also supports $result. More...


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

Remarks

Helper class invoked just after StageTwoParser. Its job is to create variables referenced by labels (label:item) and by code blocks ($RuleName), to modify the code blocks to remove the $ operator, and to update the ResultSaver of each labeled predicate. Also supports $result.

Labels and $substitutions can also be used with Preds constructed by hand, except that referencing tokens directly from code blocks (e.g. $'#') won't work unless the corresponding grammar Pred has a Pred.Basis is an equal syntax tree.

Public Member Functions

override void Visit (RuleRef pred)
 
override void VisitOther (Pred pred)
 
- 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 (ActionPred pred)
 
virtual void Visit (EndOfRule end)
 
void VisitChildrenOf (Seq pred)
 
void VisitChildrenOf (AndPred pred)
 
void VisitChildrenOf (Gate pred)
 
void VisitChildrenOf (Alts pred, bool includeError)
 

Static Public Member Functions

static void Run (Rule rule, IMessageSink sink, IDictionary< Symbol, Rule > rules, IPGCodeGenHelper codeGen)