Example #1
0
  private Stack<Cell> forwardPath(Cell lexemeCell, LexemePath option) {
    Stack conflictStack = new Stack();

    for (Cell c = lexemeCell; c != null && c.getLexeme() != null; c = c.getNext()) {
      if (!option.addNotCrossLexeme(c.getLexeme())) {
        conflictStack.push(c);
      }
    }

    return conflictStack;
  }