RegexLookahead

Undocumented in source.
class RegexLookahead {}

Constructors

this
this(EBNFGrammar grammar, bool[ProductionID] reduceConflictProductions, bool useRegexlookahead)
Undocumented in source.

Members

Aliases

G
alias G = Graph!(Symbol, size_t, RegexLookaheadEdgeExtra)
Undocumented in source.
NodeID
alias NodeID = G.NodeID
Undocumented in source.

Functions

buildMatchGraph
Graph!(TokenID[2], size_t).NodeID buildMatchGraph(immutable(SymbolInstance)[][] sequences)
Undocumented in source. Be warned that the author may not have intended to support it.
genGraph
void genGraph(RegexLookaheadGraph regexLookaheadGraph)
Undocumented in source. Be warned that the author may not have intended to support it.
genGraph
void genGraph(CodeWriter code, RegexLookaheadGraph regexLookaheadGraph)
Undocumented in source. Be warned that the author may not have intended to support it.
genGraphs
void genGraphs()
Undocumented in source. Be warned that the author may not have intended to support it.
genMatchFuncs
void genMatchFuncs(CodeWriter code)
Undocumented in source. Be warned that the author may not have intended to support it.
genNonterminalGraph
G genNonterminalGraph(NonterminalID startNonterminal)
Undocumented in source. Be warned that the author may not have intended to support it.
genNonterminalGraphSimple
Symbol[][] genNonterminalGraphSimple(NonterminalID startNonterminal)
Undocumented in source. Be warned that the author may not have intended to support it.
getLookaheadNonterminal
NonterminalID getLookaheadNonterminal(LRGraph graph, size_t state, size_t elementNr)
Undocumented in source. Be warned that the author may not have intended to support it.
getLookaheadNonterminalSimple
NonterminalID getLookaheadNonterminalSimple(LRGraph graph, size_t state, size_t elementNr)
Undocumented in source. Be warned that the author may not have intended to support it.
isSimpleNonterminal
bool isSimpleNonterminal(NonterminalID n)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

clusterResults
void clusterResults(G g)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

grammar
EBNFGrammar grammar;
Undocumented in source.
grammar2
EBNFGrammar grammar2;
Undocumented in source.
grammarFinished
bool grammarFinished;
Undocumented in source.
graphs
RegexLookaheadGraph[] graphs;
Undocumented in source.
innerGraphs
RegexLookaheadGraph[immutable(SymbolInstance[])[]] innerGraphs;
Undocumented in source.
lookaheadNonterminals
NonterminalID[ElementID] lookaheadNonterminals;
Undocumented in source.
lookaheadNonterminalsSimple
NonterminalID[ElementID] lookaheadNonterminalsSimple;
Undocumented in source.
matchGraph
Graph!(TokenID[2], size_t) matchGraph;
Undocumented in source.
matchGraphStartIndex
size_t[immutable(SymbolInstance[])[]] matchGraphStartIndex;
Undocumented in source.
matchGraphStates
Graph!(TokenID[2], size_t).NodeID[immutable(SymbolInstance[])[]] matchGraphStates;
Undocumented in source.
matchingTokensAll
bool[TokenID] matchingTokensAll;
Undocumented in source.
matchingTokensMap
TokenID[][TokenID] matchingTokensMap;
Undocumented in source.
nonterminalGraphCache
G[NonterminalID] nonterminalGraphCache;
Undocumented in source.
nonterminalGraphSimpleCache
Symbol[][][NonterminalID] nonterminalGraphSimpleCache;
Undocumented in source.
reduceConflictProductions
bool[ProductionID] reduceConflictProductions;
Undocumented in source.
subGraphToken
TokenID subGraphToken;
Undocumented in source.
subGraphTokens
immutable(SymbolInstance)[][TokenID] subGraphTokens;
Undocumented in source.
useRegexlookahead
bool useRegexlookahead;
Undocumented in source.

Meta