Exemple #1
0
        /// <summary>
        /// Initializes the actual parsing using the given TextReader.
        /// </summary>
        /// <param name="input">The input source to be parsed.</param>
        /// <returns>The result of type T.</returns>
        public T Parse(TextReader input)
        {
            this.reader = new PositionalTextReader(input, input.GetType().Name);

            this.Step( );
            return(this.Parse(Precedence.None));
        }
Exemple #2
0
 public ParserException(string msg, PositionalTextReader reader)
     : this(msg, reader.Source, reader.Line, reader.Col)
 {
 }