Свойство | Type | Description | |
---|---|---|---|
F | |||
LLPG | LLParserGenerator |
Свойство | Type | Description | |
---|---|---|---|
AddUserAction | void | ||
DeduplicateLabels | void | ||
GenerateCodeForAlts | void | ||
GenerateExtraMatchingCode | WList |
||
GenerateIfElseChain | LNode | ||
GenerateTest | LNode | ||
GenerateTest | LNode | ||
GetAndPredCode | LNode | ||
GetContinueStmt | LNode | ||
GetExitStmt | LNode | ||
Join | LNode | ||
NextStopLabel | string | ||
SimpleEnoughToRepeat | bool |
Méthode | Description | |
---|---|---|
Generate ( |
||
GenerateCodeVisitor ( LLParserGenerator llpg ) : System | ||
Visit ( Alts alts ) : void |
Visit(Alts) is the most important method in this class. It generates all prediction code, which is the majority of the code in a parser.
|
|
Visit ( AndPred andp ) : void | ||
Visit ( Gate pred ) : void | ||
Visit ( Pred pred ) : void | ||
Visit ( RuleRef rref ) : void | ||
Visit ( Seq pred ) : void | ||
Visit ( TerminalPred term ) : void | ||
VisitWithNewTarget ( Pred toBeVisited, WList |
Méthode | Description | |
---|---|---|
GeneratePredictionTreeCode ( PredictionTree tree, string>.Pair |
||
GetPredictionSubtreeCode ( PredictionBranch branch, string>.Pair |
Méthode | Description | |
---|---|---|
AddUserAction ( LNode action ) : void | ||
DeduplicateLabels ( string>.Pair |
||
GenerateCodeForAlts ( Alts alts, int>.Dictionary |
||
GenerateExtraMatchingCode ( string>.Pair |
||
GenerateIfElseChain ( PredictionTree tree, LNode branchCode, LNode &laVar, MSet |
||
GenerateTest ( List |
||
GenerateTest ( Set |
||
GetAndPredCode ( AndPred pred, int lookaheadAmt, LNode laVar ) : LNode | ||
GetContinueStmt ( Symbol loopType ) : LNode | ||
GetExitStmt ( Symbol haveLoop ) : LNode | ||
Join ( IEnumerable |
||
NextStopLabel ( ) : string | ||
SimpleEnoughToRepeat ( LNode code ) : bool |
public GenerateCodeVisitor ( LLParserGenerator llpg ) : System | ||
llpg | LLParserGenerator | |
Résultat | System |
protected GeneratePredictionTreeCode ( PredictionTree tree, string>.Pair |
||
tree | PredictionTree | |
matchingCode | string>.Pair | |
haveLoop | Symbol | |
Résultat | LNode |
protected GetPredictionSubtreeCode ( PredictionBranch branch, string>.Pair |
||
branch | PredictionBranch | |
matchingCode | string>.Pair | |
haveLoop | Symbol | |
Résultat | LNode |
public VisitWithNewTarget ( Pred toBeVisited, WList |
||
toBeVisited | Pred | |
target | WList |
|
Résultat | void |