summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjofret2008-06-06 16:00:47 +0000
committerjofret2008-06-06 16:00:47 +0000
commitd8a5efee6801213c7950089ef63c48f90352bd0d (patch)
treed46ca4a27e34c3f50b117522d5029e167b5420b8 /src
parent4735aa6bd7f29a7f80d900ab71d2883bfc21fa26 (diff)
downloadscilab2c-d8a5efee6801213c7950089ef63c48f90352bd0d.tar.gz
scilab2c-d8a5efee6801213c7950089ef63c48f90352bd0d.tar.bz2
scilab2c-d8a5efee6801213c7950089ef63c48f90352bd0d.zip
File management
Diffstat (limited to 'src')
-rw-r--r--src/Scilab2C/HowToInstallAndUseSCI2C.txt54
-rw-r--r--src/Scilab2C/SCI2CTests/test999_WorkingDir/SCI2CInputParameters.sce189
-rw-r--r--src/Scilab2C/Scilab2C/LaunchMultiRunSCI2C.sci170
-rw-r--r--src/Scilab2C/Scilab2C/LaunchRunSCI2C.sci96
-rw-r--r--src/Scilab2C/Scilab2C/full_reset.sce44
-rw-r--r--src/Scilab2C/Scilab2C/runsci2c.sci206
-rw-r--r--src/Scilab2C/Scilab2C/runscicode.sci128
-rw-r--r--src/Scilab2C/readme.txt23
8 files changed, 461 insertions, 449 deletions
diff --git a/src/Scilab2C/HowToInstallAndUseSCI2C.txt b/src/Scilab2C/HowToInstallAndUseSCI2C.txt
index cada1f3f..ec08ab42 100644
--- a/src/Scilab2C/HowToInstallAndUseSCI2C.txt
+++ b/src/Scilab2C/HowToInstallAndUseSCI2C.txt
@@ -1,27 +1,27 @@
-----------------------------
---- HOW TO INSTALL SCI2C ---
-----------------------------
-1. Install scilab-4.1.2.exe
-
-2. Configure the following two parameters in Scilab2C/LaunchRunSCI2C.sci:
- SCI2CDirectory
- SCI2CInputPrmFileName
-
-3. Configure the following parameters in SCI2CTests\test999_WorkingDir\SCI2CInputParameters.sce
- UserSciCodeMainDir
- CCompilerPathStyle
- Sci2CLibMainHeaderFName
-
-------------------------
---- HOW TO USE SCI2C ---
-------------------------
-4. Edit mainfunction.sci according to the scilab algorithm to be converted into C
-
-5. Start SCI2C conversion typing the following command in the Scilab workspace:
- mclose('all'); cd <path of "Scilab2C" directory>; exec LaunchRunSCI2C.sci
-
-6. Compile/Execute C code by using the makefile created in SCI2CTests\test999_WorkingDir\C_Code
-
-7. Compare the results with the Scilab execution by typing again
- mclose('all'); cd <path of "Scilab2C" directory>; exec LaunchRunSCI2C.sci
- (answer n when the SCI2C attempts to convert again the scilab code)
+----------------------------
+--- HOW TO INSTALL SCI2C ---
+----------------------------
+1. Install scilab-4.1.2.exe
+
+2. Configure the following two parameters in Scilab2C/LaunchRunSCI2C.sci:
+ SCI2CDirectory
+ SCI2CInputPrmFileName
+
+3. Configure the following parameters in SCI2CTests\test999_WorkingDir\SCI2CInputParameters.sce
+ UserSciCodeMainDir
+ CCompilerPathStyle
+ Sci2CLibMainHeaderFName
+
+------------------------
+--- HOW TO USE SCI2C ---
+------------------------
+4. Edit mainfunction.sci according to the scilab algorithm to be converted into C
+
+5. Start SCI2C conversion typing the following command in the Scilab workspace:
+ mclose('all'); cd <path of "Scilab2C" directory>; exec LaunchRunSCI2C.sci
+
+6. Compile/Execute C code by using the makefile created in SCI2CTests\test999_WorkingDir\C_Code
+
+7. Compare the results with the Scilab execution by typing again
+ mclose('all'); cd <path of "Scilab2C" directory>; exec LaunchRunSCI2C.sci
+ (answer n when the SCI2C attempts to convert again the scilab code)
diff --git a/src/Scilab2C/SCI2CTests/test999_WorkingDir/SCI2CInputParameters.sce b/src/Scilab2C/SCI2CTests/test999_WorkingDir/SCI2CInputParameters.sce
index 15a3ace1..90d3b87f 100644
--- a/src/Scilab2C/SCI2CTests/test999_WorkingDir/SCI2CInputParameters.sce
+++ b/src/Scilab2C/SCI2CTests/test999_WorkingDir/SCI2CInputParameters.sce
@@ -1,94 +1,95 @@
-// -----------------------------------------------------------------
-// === hArtes/PoliBa/GAP SCI2C tool ===
-// === Authors: ===
-// === Raffaele Nutricato ===
-// === raffaele.nutricato@tiscali.it ===
-// === Alberto Morea ===
-// === ===
-// === *************** ===
-// === USER PARAMETERS ===
-// === *************** ===
-// === ===
-//
-// Copyright 2007 Raffaele Nutricato.
-// Contact: raffaele.nutricato@tiscali.it
-// -----------------------------------------------------------------
-
-
-// ------------------------------------------
-// --- Specify Paths of User Scilab code. ---
-// ------------------------------------------
-//
-// FIXME : Must be a relative path or user input but neither absolute path.
-//
-//UserSciCodeMainDir = 'D:\NutricatoGAPSVN\PROGETTI_APERTI\POLIBA\hArtes\WP2_SCI2C\Software\Version_alpha\SCI2CTests\test999_WorkingDir';
-UserSciCodeMainDir = '/home/bruno/work/hArtes/scilab2c/src/Scilab2C/SCI2CTests/test999_WorkingDir';
-
-// --- Path + filename of the .sci main file of the code to be translated. ---
-// It is the entry point.
-UserScilabMainFile = fullfile(UserSciCodeMainDir,'scilabcode/mainfunction.sci');
-
-// --- List of the paths containing the .sci files written by the user. ---
-UserSciFilesPaths = ...
- [...
- fullfile(UserSciCodeMainDir,'scilabcode');...
- ];
-
-// --------------------------
-// --- End Specify paths. ---
-// --------------------------
-
-
-// ----------------------------
-// --- Select the run mode. ---
-// ----------------------------
-//RunMode = 'GenLibraryStructure';
-//RunMode = 'Translate';
-RunMode = 'All';
-
-// --- Select one of the following options. ---
-
-// 'GenLibraryStructure';
-// Generates the library structure and exits. It is very
-// useful when the user wants to manually change the files stored in that structure
-// before running the translation. 'GenLibraryStructure' option forces SCI2C to remove
-// the already existing WorkingDir and OutCCCodeDir directories.
-
-// 'Translate';
-// Performs the translation without generating the library structure. It means that the library
-// structure must be already existing. This is useful when the user doesn't want to spend time
-// to generate again that structure or when he wants to force the SCI2C tool to access to
-// a manually-changed library structure. 'Translate' option forces SCI2C to don't remove
-// the already existing WorkingDir. Only OutCCCodeDir directory will be removed.
-
-// 'All';
-// Performs all the actions listed above.
-
-// --------------------------------
-// --- End Select the run mode. ---
-// --------------------------------
-
-
-// ----------------------------
-// --- Translation Options. ---
-// ----------------------------
-// --- Enable (1) / Disable (0) copy of Scilab code into C code. ---
-// If 1 the Scilab code will be copied into the C code in order to show
-// how each Scilab code line has been translated into C code.
-CopySciCodeIntoCCode = 1;
-
-// --- Select the path style for the C code. ---
-// It can be:
-// windows
-// unix
-// cygwin
-CCompilerPathStyle = 'cygwin';
-
-// --- Path + File name of the main SCI2C library header file.
-//
-// FIXME : Must be a relative path or user input but neither absolute path.
-//
-Sci2CLibMainHeaderFName = 'D:\NutricatoGAPSVN\PROGETTI_APERTI\POLIBA\hArtes\WP2_SCI2C\Software\Version_alpha\Scilab2C\CFiles\sci2cincludes\sci2clib.h';
-// --------------------------------
-// --- End Translation Options. ---
-// --------------------------------
+// -----------------------------------------------------------------
+// === hArtes/PoliBa/GAP SCI2C tool ===
+// === Authors: ===
+// === Raffaele Nutricato ===
+// === raffaele.nutricato@tiscali.it ===
+// === Alberto Morea ===
+// === ===
+// === *************** ===
+// === USER PARAMETERS ===
+// === *************** ===
+// === ===
+//
+// Copyright 2007 Raffaele Nutricato.
+// Contact: raffaele.nutricato@tiscali.it
+// -----------------------------------------------------------------
+
+
+// ------------------------------------------
+// --- Specify Paths of User Scilab code. ---
+// ------------------------------------------
+//
+// FIXME : Must be a relative path or user input but neither absolute path.
+// FIXED : Need to be tested
+//
+//UserSciCodeMainDir = 'D:\NutricatoGAPSVN\PROGETTI_APERTI\POLIBA\hArtes\WP2_SCI2C\Software\Version_alpha\SCI2CTests\test999_WorkingDir';
+UserSciCodeMainDir = '../SCI2CTests/test999_WorkingDir';
+
+// --- Path + filename of the .sci main file of the code to be translated. ---
+// It is the entry point.
+UserScilabMainFile = fullfile(UserSciCodeMainDir,'scilabcode/mainfunction.sci');
+
+// --- List of the paths containing the .sci files written by the user. ---
+UserSciFilesPaths = ...
+ [...
+ fullfile(UserSciCodeMainDir,'scilabcode');...
+ ];
+
+// --------------------------
+// --- End Specify paths. ---
+// --------------------------
+
+
+// ----------------------------
+// --- Select the run mode. ---
+// ----------------------------
+//RunMode = 'GenLibraryStructure';
+//RunMode = 'Translate';
+RunMode = 'All';
+
+// --- Select one of the following options. ---
+
+// 'GenLibraryStructure';
+// Generates the library structure and exits. It is very
+// useful when the user wants to manually change the files stored in that structure
+// before running the translation. 'GenLibraryStructure' option forces SCI2C to remove
+// the already existing WorkingDir and OutCCCodeDir directories.
+
+// 'Translate';
+// Performs the translation without generating the library structure. It means that the library
+// structure must be already existing. This is useful when the user doesn't want to spend time
+// to generate again that structure or when he wants to force the SCI2C tool to access to
+// a manually-changed library structure. 'Translate' option forces SCI2C to don't remove
+// the already existing WorkingDir. Only OutCCCodeDir directory will be removed.
+
+// 'All';
+// Performs all the actions listed above.
+
+// --------------------------------
+// --- End Select the run mode. ---
+// --------------------------------
+
+
+// ----------------------------
+// --- Translation Options. ---
+// ----------------------------
+// --- Enable (1) / Disable (0) copy of Scilab code into C code. ---
+// If 1 the Scilab code will be copied into the C code in order to show
+// how each Scilab code line has been translated into C code.
+CopySciCodeIntoCCode = 1;
+
+// --- Select the path style for the C code. ---
+// It can be:
+// windows
+// unix
+// cygwin
+CCompilerPathStyle = 'cygwin';
+
+// --- Path + File name of the main SCI2C library header file.
+//
+// FIXME : Must be a relative path or user input but neither absolute path.
+//
+Sci2CLibMainHeaderFName = 'D:\NutricatoGAPSVN\PROGETTI_APERTI\POLIBA\hArtes\WP2_SCI2C\Software\Version_alpha\Scilab2C\CFiles\sci2cincludes\sci2clib.h';
+// --------------------------------
+// --- End Translation Options. ---
+// --------------------------------
diff --git a/src/Scilab2C/Scilab2C/LaunchMultiRunSCI2C.sci b/src/Scilab2C/Scilab2C/LaunchMultiRunSCI2C.sci
index 55f74449..95854312 100644
--- a/src/Scilab2C/Scilab2C/LaunchMultiRunSCI2C.sci
+++ b/src/Scilab2C/Scilab2C/LaunchMultiRunSCI2C.sci
@@ -1,85 +1,85 @@
-// Before launching this script, please
-// check all the paths below.
-// User should change parameters only in (USER PARAMETERS) sections.
-// cd C:\Nutricato\OpenProjects\FP6_hArtes\WP2_SCI2C\Software\Scilab2C; exec LaunchMultiRunSCI2C.sci
-
-// --- CLEAN WORKSPACE ---
-exec full_reset.sce;
-mode(-1);
-
-// --- GENERAL SETTINGS (USER PARAMETERS) ---
-RunsDirectory = pwd(); // Path of the SCI2CRuns directory
-SCI2CDirectory = 'D:\Nutricato\OpenProjects\FP6_hArtes\WP2_SCI2C\Software\Scilab2C'; // Path of the Scilab2C directory
-
-// --- SPECIFIC SETTINGS (USER PARAMETERS) ---
-FullListSCI2CInputPrmFiles = ...
- [...
- fullfile('D:\Nutricato\OpenProjects\FP6_hArtes\WP2_SCI2C\Software\SCI2CTests\RegressionTests\test001_verysimple','SCI2CInputParameters.sce');...
- fullfile('C:\SCI2CTests\RegressionTests\test002_Symbols','SCI2CInputParameters.sce');...
- fullfile('C:\SCI2CTests\RegressionTests\test003_fft','SCI2CInputParameters.sce');...
- fullfile('C:\SCI2CTests\RegressionTests\test004_ScalarProduct','SCI2CInputParameters.sce');...
- fullfile('C:\SCI2CTests\RegressionTests\test100_recursivefunctions','SCI2CInputParameters.sce');...
- fullfile('C:\SCI2CTests\RegressionTests\test999_WorkingDir','SCI2CInputParameters.sce');...
- ];
-WorkingListSCI2CInputPrmFiles = ...
- [...
- fullfile('..\SCI2CTests\RegressionTests\test999_WorkingDir','SCI2CInputParameters.sce');...
- ];
-
-// Select one of the two lists above.
-
-ListSCI2CInputPrmFiles = WorkingListSCI2CInputPrmFiles;
-//ListSCI2CInputPrmFiles = FullListSCI2CInputPrmFiles;
-
-// ================================
-// ================================
-// ================================
-// ================================
-
-// --- LAUNCH MULTIRUNSCI2C ---
-NTranslations = size(ListSCI2CInputPrmFiles,1);
-for cnttransl = 1:NTranslations
- cd(SCI2CDirectory);
-
- SCI2CInputPrmFileName = ListSCI2CInputPrmFiles(cnttransl);
-
- // --- LAUNCH USER SCI CODE TO TEST IT BEFORE TRANSLATING IT!!! ---
- cd(SCI2CDirectory)
- getf("runscicode.sci");
- runscicode(SCI2CInputPrmFileName);
-
- // --- ASK USER FOR CONTINUATION. ---
- userchoice = input('Start translation [y/n]?','s');
- if (userchoice == 'y')
-
- // --- LAUNCH SCI2C ---
- cd(SCI2CDirectory)
- getf("runsci2c.sci");
- runsci2c(SCI2CInputPrmFileName);
- cd(SCI2CDirectory)
- else
- end
-end
-
-// ----------------------------------------
-// --- Compile and Launch all the code. ---
-// ----------------------------------------
-// This option is available only for regression tests.
-if (1==1)
- cd(fullfile(SCI2CDirectory,'ToolInitialization'));
- exec('INIT_SCI2CLoader.sce');
-
- PrintStepInfo('Generate Script for Regression Tests...Available only for Debug.','','both');
- C_GenerateLaunchScript('D:\Nutricato\OpenProjects\FP6_hArtes\WP2_SCI2C\Software\SCI2CTests\RegressionTests',ListSCI2CInputPrmFiles);
-end
-
-// ---------------------------------------
-// --- Go back to the start directory. ---
-// ---------------------------------------
-cd (RunsDirectory);
-
-// ------------------------
-// --- Close all files. ---
-// ------------------------
-// --- This must be the last instruction. ---
-mclose('all');
+// Before launching this script, please
+// check all the paths below.
+// User should change parameters only in (USER PARAMETERS) sections.
+// cd C:\Nutricato\OpenProjects\FP6_hArtes\WP2_SCI2C\Software\Scilab2C; exec LaunchMultiRunSCI2C.sci
+
+// --- CLEAN WORKSPACE ---
+exec full_reset.sce;
+mode(-1);
+
+// --- GENERAL SETTINGS (USER PARAMETERS) ---
+RunsDirectory = pwd(); // Path of the SCI2CRuns directory
+SCI2CDirectory = 'D:\Nutricato\OpenProjects\FP6_hArtes\WP2_SCI2C\Software\Scilab2C'; // Path of the Scilab2C directory
+
+// --- SPECIFIC SETTINGS (USER PARAMETERS) ---
+FullListSCI2CInputPrmFiles = ...
+ [...
+ fullfile('D:\Nutricato\OpenProjects\FP6_hArtes\WP2_SCI2C\Software\SCI2CTests\RegressionTests\test001_verysimple','SCI2CInputParameters.sce');...
+ fullfile('C:\SCI2CTests\RegressionTests\test002_Symbols','SCI2CInputParameters.sce');...
+ fullfile('C:\SCI2CTests\RegressionTests\test003_fft','SCI2CInputParameters.sce');...
+ fullfile('C:\SCI2CTests\RegressionTests\test004_ScalarProduct','SCI2CInputParameters.sce');...
+ fullfile('C:\SCI2CTests\RegressionTests\test100_recursivefunctions','SCI2CInputParameters.sce');...
+ fullfile('C:\SCI2CTests\RegressionTests\test999_WorkingDir','SCI2CInputParameters.sce');...
+ ];
+WorkingListSCI2CInputPrmFiles = ...
+ [...
+ fullfile('..\SCI2CTests\RegressionTests\test999_WorkingDir','SCI2CInputParameters.sce');...
+ ];
+
+// Select one of the two lists above.
+
+ListSCI2CInputPrmFiles = WorkingListSCI2CInputPrmFiles;
+//ListSCI2CInputPrmFiles = FullListSCI2CInputPrmFiles;
+
+// ================================
+// ================================
+// ================================
+// ================================
+
+// --- LAUNCH MULTIRUNSCI2C ---
+NTranslations = size(ListSCI2CInputPrmFiles,1);
+for cnttransl = 1:NTranslations
+ cd(SCI2CDirectory);
+
+ SCI2CInputPrmFileName = ListSCI2CInputPrmFiles(cnttransl);
+
+ // --- LAUNCH USER SCI CODE TO TEST IT BEFORE TRANSLATING IT!!! ---
+ cd(SCI2CDirectory)
+ getf("runscicode.sci");
+ runscicode(SCI2CInputPrmFileName);
+
+ // --- ASK USER FOR CONTINUATION. ---
+ userchoice = input('Start translation [y/n]?','s');
+ if (userchoice == 'y')
+
+ // --- LAUNCH SCI2C ---
+ cd(SCI2CDirectory)
+ getf("runsci2c.sci");
+ runsci2c(SCI2CInputPrmFileName);
+ cd(SCI2CDirectory)
+ else
+ end
+end
+
+// ----------------------------------------
+// --- Compile and Launch all the code. ---
+// ----------------------------------------
+// This option is available only for regression tests.
+if (1==1)
+ cd(fullfile(SCI2CDirectory,'ToolInitialization'));
+ exec('INIT_SCI2CLoader.sce');
+
+ PrintStepInfo('Generate Script for Regression Tests...Available only for Debug.','','both');
+ C_GenerateLaunchScript('D:\Nutricato\OpenProjects\FP6_hArtes\WP2_SCI2C\Software\SCI2CTests\RegressionTests',ListSCI2CInputPrmFiles);
+end
+
+// ---------------------------------------
+// --- Go back to the start directory. ---
+// ---------------------------------------
+cd (RunsDirectory);
+
+// ------------------------
+// --- Close all files. ---
+// ------------------------
+// --- This must be the last instruction. ---
+mclose('all');
diff --git a/src/Scilab2C/Scilab2C/LaunchRunSCI2C.sci b/src/Scilab2C/Scilab2C/LaunchRunSCI2C.sci
index 06f9ef1d..8521b45e 100644
--- a/src/Scilab2C/Scilab2C/LaunchRunSCI2C.sci
+++ b/src/Scilab2C/Scilab2C/LaunchRunSCI2C.sci
@@ -1,48 +1,48 @@
-// Before launching this script, please
-// check all the paths below.
-// User should change parameters only in (USER PARAMETERS) sections.
-// cd C:\SCI2CTests\SCI2CRuns; exec LaunchRunSCI2C.sci
-
-// --- CLEAN WORKSPACE ---
-exec full_reset.sce;
-//mode(-1);
-
-// --- GENERAL SETTINGS (USER PARAMETERS) ---
-RunsDirectory = pwd(); // Path of the SCI2CRuns directory
-
-//
-// FIXME : Must be a relative path or user input but neither absolute path.
-// FIXED : Need to be tested.
-//
-//SCI2CDirectory = 'D:\NutricatoGAPSVN\PROGETTI_APERTI\POLIBA\hArtes\WP2_SCI2C\Software\Version_alpha\Scilab2C'; // Path of the Scilab2C directory
-SCI2CDirectory = '.';
-
-// --- SPECIFIC SETTINGS (USER PARAMETERS) ---
-//
-// FIXME : Must be a relative path or user input but neither absolute path.
-// FIXED : Need to be tested.
-//
-//SCI2CInputPrmFileName =
-//'D:\NutricatoGAPSVN\PROGETTI_APERTI\POLIBA\hArtes\WP2_SCI2C\Software\Version_alpha\SCI2CTests\test999_WorkingDir\SCI2CInputParameters.sce'; // Path + file name of the input parameters.
-SCI2CInputPrmFileName = '../SCI2CTests/test999_WorkingDir/SCI2CInputParameters.sce';
-
-// --- LAUNCH USER SCI CODE TO TEST IT BEFORE TRANSLATING IT!!! ---
-cd(SCI2CDirectory)
-getf("runscicode.sci");
-runscicode(SCI2CInputPrmFileName);
-
-// --- ASK USER FOR CONTINUATION. ---
-userchoice = input('Start translation [y/n]?','s');
-if (userchoice == 'y')
- // --- LAUNCH SCI2C ---
- cd(SCI2CDirectory)
- getf("runsci2c.sci");
- runsci2c(SCI2CInputPrmFileName);
- cd(SCI2CDirectory)
-end
-
-// --- GO BACK TO THE START DIRECTORY. ---
-cd (RunsDirectory);
-
-// --- CLOSE ALL FILES. ---
-mclose('all');
+// Before launching this script, please
+// check all the paths below.
+// User should change parameters only in (USER PARAMETERS) sections.
+// cd C:\SCI2CTests\SCI2CRuns; exec LaunchRunSCI2C.sci
+
+// --- CLEAN WORKSPACE ---
+exec full_reset.sce;
+//mode(-1);
+
+// --- GENERAL SETTINGS (USER PARAMETERS) ---
+RunsDirectory = pwd(); // Path of the SCI2CRuns directory
+
+//
+// FIXME : Must be a relative path or user input but neither absolute path.
+// FIXED : Need to be tested.
+//
+//SCI2CDirectory = 'D:\NutricatoGAPSVN\PROGETTI_APERTI\POLIBA\hArtes\WP2_SCI2C\Software\Version_alpha\Scilab2C'; // Path of the Scilab2C directory
+SCI2CDirectory = '.';
+
+// --- SPECIFIC SETTINGS (USER PARAMETERS) ---
+//
+// FIXME : Must be a relative path or user input but neither absolute path.
+// FIXED : Need to be tested.
+//
+//SCI2CInputPrmFileName =
+//'D:\NutricatoGAPSVN\PROGETTI_APERTI\POLIBA\hArtes\WP2_SCI2C\Software\Version_alpha\SCI2CTests\test999_WorkingDir\SCI2CInputParameters.sce'; // Path + file name of the input parameters.
+SCI2CInputPrmFileName = '../SCI2CTests/test999_WorkingDir/SCI2CInputParameters.sce';
+
+// --- LAUNCH USER SCI CODE TO TEST IT BEFORE TRANSLATING IT!!! ---
+cd(SCI2CDirectory)
+getf("runscicode.sci");
+runscicode(SCI2CInputPrmFileName);
+
+// --- ASK USER FOR CONTINUATION. ---
+userchoice = input('Start translation [y/n]?','s');
+if (userchoice == 'y')
+ // --- LAUNCH SCI2C ---
+ cd(SCI2CDirectory)
+ getf("runsci2c.sci");
+ runsci2c(SCI2CInputPrmFileName);
+ cd(SCI2CDirectory)
+end
+
+// --- GO BACK TO THE START DIRECTORY. ---
+cd (RunsDirectory);
+
+// --- CLOSE ALL FILES. ---
+mclose('all');
diff --git a/src/Scilab2C/Scilab2C/full_reset.sce b/src/Scilab2C/Scilab2C/full_reset.sce
index 43173293..e1e65fda 100644
--- a/src/Scilab2C/Scilab2C/full_reset.sce
+++ b/src/Scilab2C/Scilab2C/full_reset.sce
@@ -1,22 +1,22 @@
-// Clear files, variables, figures, screen.
-mode(-1);
-clc;
-
-disp('Starting full reset...')
-//disp('Press enter to continue...');
-//halt;
-
-clc;
-clear
-//mclose('all');
-
-//
-// LOL !!!!
-// Well... I'm pretty sure this is totally useless.
-//
-// Assuming that max 50 figures are currently open
-//for counter =1:50
-// close
-//end
-
-lines(0)
+// Clear files, variables, figures, screen.
+mode(-1);
+clc;
+
+disp('Starting full reset...')
+//disp('Press enter to continue...');
+//halt;
+
+clc;
+clear
+//mclose('all');
+
+//
+// LOL !!!!
+// Well... I'm pretty sure this is totally useless.
+//
+// Assuming that max 50 figures are currently open
+//for counter =1:50
+// close
+//end
+
+lines(0)
diff --git a/src/Scilab2C/Scilab2C/runsci2c.sci b/src/Scilab2C/Scilab2C/runsci2c.sci
index 387e0283..f07cbf2e 100644
--- a/src/Scilab2C/Scilab2C/runsci2c.sci
+++ b/src/Scilab2C/Scilab2C/runsci2c.sci
@@ -1,103 +1,103 @@
-function runsci2c(SCI2CInputPrmFile)
-// function runsci2c(SCI2CInputPrmFile)
-// -----------------------------------------------------------------
-// === hArtes/PoliBa/GAP SCI2C tool ===
-// === Authors: ===
-// === Raffaele Nutricato ===
-// === raffaele.nutricato@tiscali.it ===
-// === Alberto Morea ===
-//
-// This is the main function of SCI2C.
-//
-// Input data:
-// SCI2CInputPrmFile: path+filename of the input parameters file.
-//
-// Output data:
-// ---
-//
-// Status:
-// 11-Apr-2007 -- Raffaele Nutricato: Author.
-// 11-Apr-2007 -- Alberto Morea: Tests.
-//
-// Copyright 2007 Raffaele Nutricato & Alberto Morea.
-// Contact: raffaele.nutricato@tiscali.it
-// -----------------------------------------------------------------
-
-// -------------------
-// --- Soft reset. ---
-// -------------------
-mode(-1);
-clc;
-// -----------------------
-// --- End Soft reset. ---
-// -----------------------
-
-// -------------------------
-// --- Input Parameters. ---
-// -------------------------
-RunSci2CMainDir = pwd();
-// -----------------------------
-// --- End input Parameters. ---
-// -----------------------------
-
-// -------------------------------
-// --- Perform Intializations. ---
-// -------------------------------
-// --- Load SCI2C directories and files. ---
-cd(fullfile(RunSci2CMainDir,'ToolInitialization'));
-exec('INIT_SCI2CLoader.sce');
-cd(RunSci2CMainDir);
-
-// --- Initialize the SCI2C tool directories and files. ---
-[FileInfoDatFile,SharedInfoDatFile] = INIT_SCI2C(SCI2CInputPrmFile);
-
-// --- Load RunMode. ---
-load(SharedInfoDatFile,'SharedInfo');
-RunMode = SharedInfo.RunMode;
-clear ShareInfo
-
-// --- Generation of the library structure. ---
-if (RunMode == 'GenLibraryStructure' | RunMode == 'All')
- INIT_GenLibraries(FileInfoDatFile);
-end
-
-// --- Load Library Info. ---
-INIT_LoadLibraries(FileInfoDatFile);
-
-// -----------------------------------
-// --- End Perform Intializations. ---
-// -----------------------------------
-
-// ----------------------------------
-// --- Perform SCI2C Translation. ---
-// ----------------------------------
-if (RunMode == 'All' | RunMode == 'Translate')
- FlagContinueTranslation = 1;
- while(FlagContinueTranslation == 1)
- UpdateSCI2CInfo(FileInfoDatFile);
- AST_GetASTFile(FileInfoDatFile);
- AST2Ccode(FileInfoDatFile);
- JoinDeclarAndCcode(FileInfoDatFile);
- FlagContinueTranslation = ManageNextConversion(FileInfoDatFile);
- end
-end
-
-// --------------------------
-// --- Generate Makefile. ---
-// --------------------------
-load(FileInfoDatFile,'FileInfo');
-load(SharedInfoDatFile,'SharedInfo');
-C_GenerateMakefile(FileInfo,SharedInfo);
-clear FileInfo
-clear SharedInfo
-
-// -----------------
-// --- Epilogue. ---
-// -----------------
-load(FileInfoDatFile,'FileInfo');
-if (RunMode == 'All' | RunMode == 'Translate')
- PrintStepInfo('Translation Successfully Completed!!!',FileInfo.GeneralReport,'both');
-elseif (RunMode == 'GenLibraryStructure')
- PrintStepInfo('Library Structure Successfully Created!!!',FileInfo.GeneralReport,'both');
-end
-clear FileInfo
+function runsci2c(SCI2CInputPrmFile)
+// function runsci2c(SCI2CInputPrmFile)
+// -----------------------------------------------------------------
+// === hArtes/PoliBa/GAP SCI2C tool ===
+// === Authors: ===
+// === Raffaele Nutricato ===
+// === raffaele.nutricato@tiscali.it ===
+// === Alberto Morea ===
+//
+// This is the main function of SCI2C.
+//
+// Input data:
+// SCI2CInputPrmFile: path+filename of the input parameters file.
+//
+// Output data:
+// ---
+//
+// Status:
+// 11-Apr-2007 -- Raffaele Nutricato: Author.
+// 11-Apr-2007 -- Alberto Morea: Tests.
+//
+// Copyright 2007 Raffaele Nutricato & Alberto Morea.
+// Contact: raffaele.nutricato@tiscali.it
+// -----------------------------------------------------------------
+
+// -------------------
+// --- Soft reset. ---
+// -------------------
+mode(-1);
+clc;
+// -----------------------
+// --- End Soft reset. ---
+// -----------------------
+
+// -------------------------
+// --- Input Parameters. ---
+// -------------------------
+RunSci2CMainDir = pwd();
+// -----------------------------
+// --- End input Parameters. ---
+// -----------------------------
+
+// -------------------------------
+// --- Perform Intializations. ---
+// -------------------------------
+// --- Load SCI2C directories and files. ---
+cd(fullfile(RunSci2CMainDir,'ToolInitialization'));
+exec('INIT_SCI2CLoader.sce');
+cd(RunSci2CMainDir);
+
+// --- Initialize the SCI2C tool directories and files. ---
+[FileInfoDatFile,SharedInfoDatFile] = INIT_SCI2C(SCI2CInputPrmFile);
+
+// --- Load RunMode. ---
+load(SharedInfoDatFile,'SharedInfo');
+RunMode = SharedInfo.RunMode;
+clear ShareInfo
+
+// --- Generation of the library structure. ---
+if (RunMode == 'GenLibraryStructure' | RunMode == 'All')
+ INIT_GenLibraries(FileInfoDatFile);
+end
+
+// --- Load Library Info. ---
+INIT_LoadLibraries(FileInfoDatFile);
+
+// -----------------------------------
+// --- End Perform Intializations. ---
+// -----------------------------------
+
+// ----------------------------------
+// --- Perform SCI2C Translation. ---
+// ----------------------------------
+if (RunMode == 'All' | RunMode == 'Translate')
+ FlagContinueTranslation = 1;
+ while(FlagContinueTranslation == 1)
+ UpdateSCI2CInfo(FileInfoDatFile);
+ AST_GetASTFile(FileInfoDatFile);
+ AST2Ccode(FileInfoDatFile);
+ JoinDeclarAndCcode(FileInfoDatFile);
+ FlagContinueTranslation = ManageNextConversion(FileInfoDatFile);
+ end
+end
+
+// --------------------------
+// --- Generate Makefile. ---
+// --------------------------
+load(FileInfoDatFile,'FileInfo');
+load(SharedInfoDatFile,'SharedInfo');
+C_GenerateMakefile(FileInfo,SharedInfo);
+clear FileInfo
+clear SharedInfo
+
+// -----------------
+// --- Epilogue. ---
+// -----------------
+load(FileInfoDatFile,'FileInfo');
+if (RunMode == 'All' | RunMode == 'Translate')
+ PrintStepInfo('Translation Successfully Completed!!!',FileInfo.GeneralReport,'both');
+elseif (RunMode == 'GenLibraryStructure')
+ PrintStepInfo('Library Structure Successfully Created!!!',FileInfo.GeneralReport,'both');
+end
+clear FileInfo
diff --git a/src/Scilab2C/Scilab2C/runscicode.sci b/src/Scilab2C/Scilab2C/runscicode.sci
index 7247ddb4..79d5177b 100644
--- a/src/Scilab2C/Scilab2C/runscicode.sci
+++ b/src/Scilab2C/Scilab2C/runscicode.sci
@@ -1,64 +1,64 @@
-function runscicode(SCI2CInputPrmFile)
-// function runscicode(SCI2CInputPrmFile)
-// -----------------------------------------------------------------
-// === hArtes/PoliBa/GAP SCI2C tool ===
-// === Authors: ===
-// === Raffaele Nutricato ===
-// === raffaele.nutricato@tiscali.it ===
-// === Alberto Morea ===
-//
-// Run the code written by the user before translating it.
-//
-// Input data:
-// ---
-// Output data:
-// ---
-//
-// Status:
-// 11-Apr-2007 -- Raffaele Nutricato: Author.
-//
-// Copyright 2007 Raffaele Nutricato.
-// Contact: raffaele.nutricato@tiscali.it
-// -----------------------------------------------------------------
-
-// -------------------
-// --- Soft reset. ---
-// -------------------
-mode(-1);
-clc;
-// -----------------------
-// --- End Soft reset. ---
-// -----------------------
-
-// -------------------------
-// --- Input Parameters. ---
-// -------------------------
-RunSci2CMainDir = pwd();
-// -----------------------------
-// --- End input Parameters. ---
-// -----------------------------
-
-cd(fullfile(RunSci2CMainDir,'ToolInitialization'));
-exec('INIT_SCI2CLoader.sce');
-cd(RunSci2CMainDir);
-
-// --- Read user parameters. ---
-exec(SCI2CInputPrmFile);
-
-
-// --- Add all user paths. ---
-for cntpath = 1:size(UserSciFilesPaths,1)
- getd(UserSciFilesPaths(cntpath));
-end
-
-// --- Execute code. ---
-disp('-----------------------------------');
-disp('--- Executing your SCILAB code. ---');
-disp('-----------------------------------');
-[tmppath,tmpfile,tmpext] = fileparts(UserScilabMainFile);
-cd(tmppath);
-exec(tmpfile+tmpext);
-cd(RunSci2CMainDir);
-disp('------------------------------------------');
-disp('--- End Execution of your SCILAB code. ---');
-disp('------------------------------------------');
+function runscicode(SCI2CInputPrmFile)
+// function runscicode(SCI2CInputPrmFile)
+// -----------------------------------------------------------------
+// === hArtes/PoliBa/GAP SCI2C tool ===
+// === Authors: ===
+// === Raffaele Nutricato ===
+// === raffaele.nutricato@tiscali.it ===
+// === Alberto Morea ===
+//
+// Run the code written by the user before translating it.
+//
+// Input data:
+// ---
+// Output data:
+// ---
+//
+// Status:
+// 11-Apr-2007 -- Raffaele Nutricato: Author.
+//
+// Copyright 2007 Raffaele Nutricato.
+// Contact: raffaele.nutricato@tiscali.it
+// -----------------------------------------------------------------
+
+// -------------------
+// --- Soft reset. ---
+// -------------------
+mode(-1);
+clc;
+// -----------------------
+// --- End Soft reset. ---
+// -----------------------
+
+// -------------------------
+// --- Input Parameters. ---
+// -------------------------
+RunSci2CMainDir = pwd();
+// -----------------------------
+// --- End input Parameters. ---
+// -----------------------------
+
+cd(fullfile(RunSci2CMainDir,'ToolInitialization'));
+exec('INIT_SCI2CLoader.sce');
+cd(RunSci2CMainDir);
+
+// --- Read user parameters. ---
+exec(SCI2CInputPrmFile);
+
+
+// --- Add all user paths. ---
+for cntpath = 1:size(UserSciFilesPaths,1)
+ getd(UserSciFilesPaths(cntpath));
+end
+
+// --- Execute code. ---
+disp('-----------------------------------');
+disp('--- Executing your SCILAB code. ---');
+disp('-----------------------------------');
+[tmppath,tmpfile,tmpext] = fileparts(UserScilabMainFile);
+cd(tmppath);
+exec(tmpfile+tmpext);
+cd(RunSci2CMainDir);
+disp('------------------------------------------');
+disp('--- End Execution of your SCILAB code. ---');
+disp('------------------------------------------');
diff --git a/src/Scilab2C/readme.txt b/src/Scilab2C/readme.txt
index 70c230a8..894e2cbc 100644
--- a/src/Scilab2C/readme.txt
+++ b/src/Scilab2C/readme.txt
@@ -1,6 +1,17 @@
-tolti tutti i commenti dall'ast management.
-togliere tutti i commenti dalle altre dir.
-rimuovere annotazione di molte funzioni nel fill
-rimuovere funzionalita' delle global e dei cicli for.
-rimuovere supporto alle stringhe.
-trovare con al un esempio piu' carino. \ No newline at end of file
+- tolti tutti i commenti dall'ast management.
++ Remove all comments in AST Management
+
+- togliere tutti i commenti dalle altre dir.
++ Remove all comments in others directories
+
+- rimuovere annotazione di molte funzioni nel fill
++ Remove comments on empty functions needing to be filled
+
+- rimuovere funzionalita' delle global e dei cicli for.
++ Remove global functionnalities on the 'for' loop (?)
+
+- rimuovere supporto alle stringhe.
++ Remove string support (?)
+
+- trovare con al un esempio piu' carino.
++ Find a more clever example