Example #1
0
        /// <summary>
        /// Constructor for base class
        /// </summary>
        /// <param name="scanner">Scanner instance for this parser</param>
        protected ShiftReduceParser(AbstractScanner <TValue, TSpan> scanner)
        {
            this.Scanner = scanner;

            StateStack    = new PushdownPrefixState <State>();
            ValueStack    = new PushdownPrefixState <TValue>();
            LocationStack = new PushdownPrefixState <TSpan>();
        }
Example #2
0
 /// <summary>
 /// Constructor for base class
 /// </summary>
 /// <param name="scanner">Scanner instance for this parser</param>
 protected ShiftReduceParser(AbstractScanner <TValue, TSpan> scanner)
 {
     this.scanner = scanner;
 }