예제 #1
0
            public NgramViewItem AddNgramViewItem(Lx.NodeChain <Lx.Grapheme> state)
            {
                var item = new NgramViewItem(this, state);

                Add(item);
                return(item);
            }
예제 #2
0
                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;
                    }
                }