|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.grammar.operations.SelectFollowsFinder
public class SelectFollowsFinder
Contains method for finding SELECT and FOLLOWS sets.
FOLLOWS(N) is the set of chars that can appear immediately after a string derived from N in derivations from the start nonterminal. SELECT(N) is here the set of chars that may appear as the first char in strings derived from N, plus - if N is nullable - the chars in FOLLOWS(N).
FirstLastFinder| Constructor Summary | |
|---|---|
SelectFollowsFinder(Grammar g)
Computes sets for the given grammar. |
|
| Method Summary | |
|---|---|
Map<String,CharSet> |
getNonterminalFollows()
Returns map from nonterminal names to charsets representing FOLLOWS information. |
Map<String,CharSet> |
getNonterminalSelect()
Returns map from nonterminal names to charsets representing SELECT information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectFollowsFinder(Grammar g)
g - grammar| Method Detail |
|---|
public Map<String,CharSet> getNonterminalFollows()
public Map<String,CharSet> getNonterminalSelect()
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||