Exemplo n.º 1
0
        public LookAheadTokenParser(StreamReader stream, string[] tokens, bool consumeWhiteSpace)
        {
            this.parser            = new PeekableStream(stream);
            this.tokens            = new List <string>(tokens);
            this.consumeWhiteSpace = consumeWhiteSpace;

            AddTokens(new string[] { " ", "\r", "\n", "\"", "\'" });
        }
Exemplo n.º 2
0
        public LookAheadTokenParser(StreamReader stream, string[] tokens, bool consumeWhiteSpace)
        {
            this.parser = new PeekableStream(stream);
              this.tokens = new List<string>(tokens);
              this.consumeWhiteSpace = consumeWhiteSpace;

              AddTokens(new string[] { " ", "\r", "\n", "\"", "\'" });
        }