Parser.Get C# (CSharp) Méthode

Get() public méthode

public Get ( ) : void
Résultat void
    void Get()
    {
        for (;;) {
            t = la;
            la = scanner.Scan();
            if (la.kind <= maxT) { ++errDist; break; }

            la = t;
        }
    }

Usage Example

Exemple #1
0
        public RantAction Compile()
        {
            var parser     = Parser.Get <SequenceParser>();
            var stack      = new Stack <IEnumerator <Parser> >();
            var actionList = new List <RantAction>();

            _nextActionCallback = a => actionList.Add(a);

            stack.Push(parser.Parse(this, _nextContext, _reader, _nextActionCallback));

top:
            while (stack.Any())
            {
                var p = stack.Peek();

                while (p.MoveNext())
                {
                    if (p.Current == null)
                    {
                        continue;
                    }

                    stack.Push(p.Current.Parse(this, _nextContext, _reader, _nextActionCallback));
                    goto top;
                }

                stack.Pop();
            }

            return(new RASequence(actionList, _source));
        }
All Usage Examples Of Parser::Get