Ejemplo n.º 1
0
 /// Constructor.
 public SimpleParser(System.IO.TextReader reader)
 {
     cc_inputStream = new SimpleCharStream(reader, 1, 1);
     tokenSource = new SimpleParserTokenManager(cc_inputStream);
     token = new Token();
     cc_ntKind = -1;
     cc_gen = 0;
     for (int i = 0; i < 0; i++) cc_la1[i] = -1;
 }
Ejemplo n.º 2
0
 /// Constructor with Stream and supplied encoding
 public SimpleParser(System.IO.Stream stream, System.Text.Encoding encoding)
 {
     cc_inputStream = new SimpleCharStream(stream, encoding, 1, 1);
     tokenSource = new SimpleParserTokenManager(cc_inputStream);
     token = new Token();
     cc_ntKind = -1;
     cc_gen = 0;
     for (int i = 0; i < 0; i++) cc_la1[i] = -1;
 }