Esempio n. 1
0
 public Parser(TokList tokens, ErrorStream errorStream)
 {
     this.from        = tokens;
     this.errorStream = errorStream;
     this.result      = new ParsedList();
     this.index       = 0;
 }
Esempio n. 2
0
        public Lexer(string file_name, string text, ErrorStream errorStream)
        {
            this.file_name  = file_name;
            this.text       = text;
            this.currentPos = new Position(file_name, text);
            this.startPos   = this.currentPos.Copy();

            this.token  = "";
            this.tokens = new TokList();

            this.errorStream = errorStream;
        }
Esempio n. 3
0
 public LexResult(TokList result, ErrorStream errors)
 {
     this.result  = result;
     this.errors  = errors;
     this.isError = this.errors.errors.Count > 0;
 }