protected SpanishLexerState GetStateOrAdd(string cache, int probeMove, int priority) { var ruleClout = LexerRules[priority]; if (ruleClout.ContainsKey(cache)) { return(ruleClout[cache]); } else { var nr = new SpanishLexerState(cache, new SpanishLexerMachineOutput("", probeMove, false, 0)); ruleClout[cache] = nr; return(nr); } }
public LexerStateConflict(SpanishLexerState state, char input) : base($"state {state.State} + {input} is already defined") { }