public NgramViewItem AddNgramViewItem(Lx.NodeChain <Lx.Grapheme> state) { var item = new NgramViewItem(this, state); Add(item); return(item); }
internal TransitionViewItem(NgramViewItem originState, Lx.Transition <Lx.Grapheme> transition) { OriginState = originState; Transition = transition; switch (transition.EndState.Type) { case Lx.NodeType.Start: coda = "[START]"; break; case Lx.NodeType.Value: coda = transition.EndState.Value.ToString(); break; case Lx.NodeType.End: coda = "[END]"; break; } }