State unitState = new NamedState("UNIT");
State ntFalseTermState = new IndentStartState("NON TERMINAL START");
endState.setEndStateFlag(true);
ntFalseTermState.setEndStateFlag(true);
startState.addTransition(new ContainsSetTextValueCondition(
iv_fullTextSet, false), endState);
// startState.addTransition(new WordSetCondition(
// iv_fullTextSet, false), endState);
//
// startState.addTransition(new WordSetCondition(iv_fullTextSet, false), endState);
startState.addTransition(new PunctuationValueCondition('-'), unitState);
startState.addTransition(new SymbolValueCondition('%'), endState);
startState.addTransition(new AnyCondition(), startState);
unitState.addTransition(new ContainsSetTextValueCondition(iv_fullTextSet, false), ntFalseTermState);
unitState.addTransition(new SymbolValueCondition('%'), endState);
unitState.addTransition(new AnyCondition(), startState);
ntFalseTermState.addTransition(new AnyCondition(), startState);
endState.addTransition(new AnyCondition(), startState);