public RemoteCompiler(int maxProcessMemoryMB, ChangeCompilerStateEventDelegate ChangeCompilerState, SourceFilesProviderDelegate sourceFilesProvider)
 {
     this.OnChangeCompilerState        += ChangeCompilerState;
     this.sourceFilesProvider           = sourceFilesProvider;
     this.maxProcessMemoryMB            = maxProcessMemoryMB;
     pabcnetcStreamReader               = new EventedStreamReaderList(stringRecived);
     pabcnetcStreamReader.DataSeparator = ConsoleCompilerConstants.DataSeparator;
     Reload();
 }
        public Compiler(ICompiler comp, SourceFilesProviderDelegate SourceFilesProvider, ChangeCompilerStateEventDelegate ChangeCompilerState)
        {
            //SyntaxTreeChanger = new SyntaxTreeChanger.SyntaxTreeChange(); // SSM 01/05/16 - подключение изменяльщика синтаксического дерева

            this.ParsersController = comp.ParsersController;
        	this.internalDebug = comp.InternalDebug;
        	OnChangeCompilerState += ChangeCompilerStateEvent;
        	if (SourceFilesProvider != null)
                this.sourceFilesProvider = SourceFilesProvider;
            if (ChangeCompilerState != null)
                OnChangeCompilerState += ChangeCompilerState;
            this.supportedSourceFiles = comp.SupportedSourceFiles;
            this.supportedProjectFiles = comp.SupportedProjectFiles;
        }
        public Compiler(SourceFilesProviderDelegate SourceFilesProvider, ChangeCompilerStateEventDelegate ChangeCompilerState)
		{
            //SyntaxTreeChanger = new SyntaxTreeChanger.SyntaxTreeChange(); // SSM 01/05/16 - подключение изменяльщика синтаксического дерева
            OnChangeCompilerState += ChangeCompilerStateEvent;
            if (SourceFilesProvider != null)
                this.sourceFilesProvider = SourceFilesProvider;
            if (ChangeCompilerState != null)
                OnChangeCompilerState += ChangeCompilerState;
            Reload();
        }
 public RemoteCompiler(int maxProcessMemoryMB, ChangeCompilerStateEventDelegate ChangeCompilerState, SourceFilesProviderDelegate sourceFilesProvider)
 {
     this.OnChangeCompilerState += ChangeCompilerState;
     this.sourceFilesProvider = sourceFilesProvider;
     this.maxProcessMemoryMB = maxProcessMemoryMB;
     pabcnetcStreamReader = new EventedStreamReaderList(stringRecived);
     pabcnetcStreamReader.DataSeparator = ConsoleCompilerConstants.DataSeparator;
     Reload();
 }
示例#5
0
        public Compiler(SourceFilesProviderDelegate SourceFilesProvider, ChangeCompilerStateEventDelegate ChangeCompilerState)
		{
            OnChangeCompilerState += ChangeCompilerStateEvent;
            if (SourceFilesProvider != null)
                this.sourceFilesProvider = SourceFilesProvider;
            if (ChangeCompilerState != null)
                OnChangeCompilerState += ChangeCompilerState;
            Reload();
        }
示例#6
0
 public Compiler(ICompiler comp, SourceFilesProviderDelegate SourceFilesProvider, ChangeCompilerStateEventDelegate ChangeCompilerState)
 {
 	this.ParsersController = comp.ParsersController;
 	this.internalDebug = comp.InternalDebug;
 	OnChangeCompilerState += ChangeCompilerStateEvent;
 	if (SourceFilesProvider != null)
         this.sourceFilesProvider = SourceFilesProvider;
     if (ChangeCompilerState != null)
         OnChangeCompilerState += ChangeCompilerState;
     this.supportedSourceFiles = comp.SupportedSourceFiles;
     this.supportedProjectFiles = comp.SupportedProjectFiles;
 }
示例#7
0
 public Preprocessor2(SourceFilesProviderDelegate sourceFilesProvider)
 {
     this.sourceFilesProvider = sourceFilesProvider;
     this.sm.Reset();
 }
示例#8
0
 public Preprocessor(SourceFilesProviderDelegate sourceFilesProvider)
 {
     this.sourceFilesProvider = sourceFilesProvider;
 }