Пример #1
0
 public Lexer(string text, ErrorSink errors) : this(new MemoryStream(Encoding.UTF8.GetBytes(text)), errors)
 {
 }
Пример #2
0
 public ErrorListener(ErrorSink errors)
 {
     this.Errors = errors;
 }
Пример #3
0
 public Lexer(Stream stream, ErrorSink errors)
 {
     this.Reader = new CharReader(stream);
     this.Errors = errors;
 }
Пример #4
0
 public Parser(Lexeme[] lexemes, ErrorSink errors)
 {
     this.Lexemes = lexemes;
     this.Errors  = errors;
 }