Ejemplo n.º 1
0
        // -- Project creation and persistence --
        /// <summary>
        /// Create a new Cobol compilation project in a local directory
        /// </summary>
        public CompilationProject(string projectName, string rootDirectory, string[] fileExtensions, Encoding encoding, EndOfLineDelimiter endOfLineDelimiter, int fixedLineLength, ColumnsLayout columnsLayout, TypeCobolOptions compilationOptions)
        {
            Name = projectName;
            RootDirectory = rootDirectory;
            SourceFileProvider = new SourceFileProvider();
            rootDirectoryLibrary = SourceFileProvider.AddLocalDirectoryLibrary(rootDirectory, true, fileExtensions, encoding, endOfLineDelimiter, fixedLineLength);

            Encoding = encoding;
            EndOfLineDelimiter = endOfLineDelimiter;
            FixedLineLength = fixedLineLength;
            ColumnsLayout = columnsLayout;
            CompilationOptions = compilationOptions;

            CobolFiles = new Dictionary<string, CobolFile>();
            CobolTextReferences = new Dictionary<string, CobolFile>();
            CobolProgramCalls = new Dictionary<string, CobolFile>();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Generic method to add any type of Cobol library to the source set
 /// </summary>
 public void AddCobolLibrary(ICobolLibrary cobolLibrary)
 {
     CobolLibraries.Add(cobolLibrary);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Generic method to add any type of Cobol library to the source set
 /// </summary>
 public void AddCobolLibrary(ICobolLibrary cobolLibrary)
 {
     CobolLibraries.Add(cobolLibrary);
 }