Пример #1
0
 public Terminal(ParserStep prev, ParserNode node, Location from, Location to, string text)
     : base(prev, node, from)
 {
     this.From = from;
     this.To   = to;
     this.Text = text;
 }
Пример #2
0
 public EnterNode(ParserStep prev, ParserNode node, Location location)
     : base(prev, node, location)
 {
 }
Пример #3
0
 internal ParserStep(ParserStep prev, ParserNode Node, Location location)
 {
     this.PrevStep = prev;
     this.Node     = Node;
     this.Location = location;
 }
Пример #4
0
        private LinearParserState(IndentedWriter w, ParserNode currNode, ParserNode prevNode, ParserStep lastStep, StatefullStackNode stack, bool?lastTerminalFailed, ISourceTextReader reader, ISourceTextReaderHolder holder = null)
            : base(w, currNode, prevNode, lastTerminalFailed, reader, holder)
        {
            this.LastStep = lastStep;
            this.Stack    = stack;

            if (_log != null)
            {
                _log.WriteLine(this.Stack.ToString());
            }
        }