コード例 #1
0
ファイル: DefineFile.cs プロジェクト: tech-bear/Rhisis
        /// <summary>
        /// Creates a new DefineFile instance.
        /// </summary>
        /// <param name="filePath">Define file path</param>
        public DefineFile(string filePath)
        {
            this._scanner = new FileTokenScanner(filePath, @"([\t# ])");
            this._defines = new Dictionary <string, object>();

            this.Read();
        }
コード例 #2
0
ファイル: IncludeFile.cs プロジェクト: tech-bear/Rhisis
        public IncludeFile(string filePath, string regexPattern = @"([(){}=,;\n\r\t])")
        {
            this._scanner    = new FileTokenScanner(filePath, regexPattern);
            this._statements = new List <IStatement>();

            this.Read();
        }