コード例 #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", "\"", "\'" });
        }
コード例 #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", "\"", "\'" });
        }