public Parser(TokList tokens, ErrorStream errorStream) { this.from = tokens; this.errorStream = errorStream; this.result = new ParsedList(); this.index = 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; }
public LexResult(TokList result, ErrorStream errors) { this.result = result; this.errors = errors; this.isError = this.errors.errors.Count > 0; }