| Package | Description |
|---|---|
| me.jaimegarza.syntax.algorithm | |
| me.jaimegarza.syntax.model.parser |
| Modifier and Type | Method and Description |
|---|---|
void |
SlrAlgorithmicSupport.addAllLookaheads(Dot marker,
Dot auxiliary) |
void |
LalrAlgorithmicSupport.addAllLookaheads(Dot marker,
Dot auxiliary) |
void |
AlgorithmicSupport.addAllLookaheads(Dot marker,
Dot auxiliary)
Simply put lookaheads of auxiliary into marker
|
boolean |
SlrAlgorithmicSupport.dotContains(Dot dot,
int terminalId) |
boolean |
LalrAlgorithmicSupport.dotContains(Dot dot,
int terminalId) |
boolean |
AlgorithmicSupport.dotContains(Dot dot,
int terminalId)
Checks a dot to see if it contains the symbol
|
String |
SlrAlgorithmicSupport.getPrintableLookahead(Dot dot) |
String |
LalrAlgorithmicSupport.getPrintableLookahead(Dot dot) |
String |
AlgorithmicSupport.getPrintableLookahead(Dot dot)
Print the lookaheads in a dot
|
void |
SlrAlgorithmicSupport.initializeDot(Dot dot) |
void |
LalrAlgorithmicSupport.initializeDot(Dot dot) |
void |
AlgorithmicSupport.initializeDot(Dot dot)
This dot is brand new, and used for a state.
|
void |
SlrAlgorithmicSupport.mergeLookaheads(Dot marker,
Dot auxiliary) |
void |
LalrAlgorithmicSupport.mergeLookaheads(Dot from,
Dot to) |
void |
AlgorithmicSupport.mergeLookaheads(Dot marker,
Dot auxiliary)
Merge one marker dot's lookaheads into a destination.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SlrAlgorithmicSupport.addLookaheadsToState(State[] I,
int state,
List<Dot> dots) |
boolean |
LalrAlgorithmicSupport.addLookaheadsToState(State[] I,
int state,
List<Dot> dots) |
boolean |
AlgorithmicSupport.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.
|
| Modifier and Type | Method and Description |
|---|---|
Dot |
State.getDot(int i) |
Dot |
Dot.next()
State dots are linked.
|
| Modifier and Type | Method and Description |
|---|---|
List<Dot> |
State.getAllDots() |
List<Dot> |
State.getClosureDots() |
List<Dot> |
State.getKernelDots() |
| Modifier and Type | Method and Description |
|---|---|
void |
State.addClosureDot(Dot dot)
Add a dot to the closure dot set
|
void |
State.addKernelDot(Dot dot)
Add a dot to the kernel dot set
|
static boolean |
Dot.equals(Dot a,
Dot b)
Utility method to compare two dots, accounting for nulls
|
| Modifier and Type | Method and Description |
|---|---|
void |
State.addAllClosureDots(List<Dot> dots)
Merge all dots into this objects closure dots.
|
void |
State.addAllKernelDots(List<Dot> dots)
Merge all dots into this objects kernel dots.
|
Copyright © 2017. All rights reserved.