Example #1
0
        /// <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();
        }
Example #2
0
        public IncludeFile(string filePath, string regexPattern = @"([(){}=,;\n\r\t])")
        {
            this._scanner    = new FileTokenScanner(filePath, regexPattern);
            this._statements = new List <IStatement>();

            this.Read();
        }