Example #1
0
 public Lexer(ParseTrace parseTrace, string fileName)
 {
     this.parseTrace = parseTrace;
     this.fileName = fileName;
     
     text = File.ReadAllText(fileName);
     
     errorStrings = new Set<string>[text.Length + 1];
     
     for (int n = 0; n < errorStrings.Length; n++)
         errorStrings[n] = new Set<string>();
     
     Restart();
 }
Example #2
0
        public Lexer(ParseTrace parseTrace, string fileName)
        {
            this.parseTrace = parseTrace;
            this.fileName   = fileName;

            text = File.ReadAllText(fileName);

            errorStrings = new Set <string> [text.Length + 1];

            for (int n = 0; n < errorStrings.Length; n++)
            {
                errorStrings[n] = new Set <string>();
            }

            Restart();
        }