public interface AlgorithmicSupport
| Modifier and Type | Method and Description |
|---|---|
void |
addAllLookaheads(Dot marker,
Dot auxiliary)
Simply put lookaheads of auxiliary into marker
|
boolean |
addLookaheadsToState(State[] I,
int state,
List<Dot> dots)
For algorithms that support look ahead per state, this method will
add all the lookaheads of the passed dots into the state's dots.
|
LookAhead |
computeLookAhead(Rule rule,
RuleItem item)
Compute the lookahead set of a rule on a specific item
|
boolean |
dotContains(Dot dot,
int terminalId)
Checks a dot to see if it contains the symbol
|
String |
getPrintableLookahead(Dot dot)
Print the lookaheads in a dot
|
boolean |
hasFollows()
Does this algorithm support follow sets?
|
void |
initializeDot(Dot dot)
This dot is brand new, and used for a state.
|
boolean |
isMultiPass() |
void |
mergeLookaheads(Dot marker,
Dot auxiliary)
Merge one marker dot's lookaheads into a destination.
|
boolean |
supportsLookahead()
Does this algorithm support lookaheads
|
boolean addLookaheadsToState(State[] I, int state, List<Dot> dots)
I - is the array of statesstate - is the state numberdots - is the list of marker Dotsvoid mergeLookaheads(Dot marker, Dot auxiliary)
marker - is the source of the lookaheadsauxiliary - is the second auxiliary dotvoid addAllLookaheads(Dot marker, Dot auxiliary)
marker - is the receiving markerauxiliary - is the originating set of lookaheadsLookAhead computeLookAhead(Rule rule, RuleItem item)
rule - is the rule where the lookahead beginsitem - is the dot position to start lookahead computations.String getPrintableLookahead(Dot dot)
dot - is the dot to printboolean dotContains(Dot dot, int terminalId)
dot - the dot to checkterminalId - is the symbolboolean isMultiPass()
void initializeDot(Dot dot)
dot - is the dot to initializeboolean hasFollows()
boolean supportsLookahead()
Copyright © 2017. All rights reserved.