Ejemplo n.º 1
0
 public Parser(TokList tokens, ErrorStream errorStream)
 {
     this.from        = tokens;
     this.errorStream = errorStream;
     this.result      = new ParsedList();
     this.index       = 0;
 }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     while (true)
     {
         ErrorStream tempErrorStream = new ErrorStream();
         Console.Write("Well> ");
         string code = Console.ReadLine();
         Utils.Execute("<stdin>", code, tempErrorStream);
     }
 }
Ejemplo n.º 3
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;
        }
Ejemplo n.º 4
0
 public LexResult(TokList result, ErrorStream errors)
 {
     this.result  = result;
     this.errors  = errors;
     this.isError = this.errors.errors.Count > 0;
 }
Ejemplo n.º 5
0
 public ParseResult(ParsedList result, ErrorStream errors)
 {
     this.result  = result;
     this.errors  = errors;
     this.isError = errors.errors.Count > 0;
 }