Exemplo n.º 1
0
        public TomlTable Parse()
        {
            var reader = new StreamReader(this.stream);
            var input  = reader.ReadToEnd();
            var lexer  = new Lexer(input);

            this.tokens = lexer.Lex();
            this.Tokens = new TokenBuffer(this.ReadToken, lookAhead: 3);

            return(this.Toml());
        }
Exemplo n.º 2
0
 public AutoThrowAwayNewLinesContext(TokenBuffer buffer)
 {
     this.buffer = buffer;
     buffer.autoThrowAwayNewlines = true;
 }
Exemplo n.º 3
0
 public ImaginaryContext(TokenBuffer buffer)
 {
     this.buffer         = buffer;
     this.bufferPosition = buffer.position;
     this.position       = 0;
 }
Exemplo n.º 4
0
 public Tokenizer(Stream sr)
 {
     this.reader     = new StreamReader(sr);
     this.characters = new CharBuffer(this.ReadChar, 64);
     this.tokens     = new TokenBuffer(this.NextToken, 5);
 }