コード例 #1
0
ファイル: Lexer.cs プロジェクト: KevinKelley/katahdin
 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();
 }
コード例 #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();
        }