Install, Readme and Changes files updated. Documentation removed.
[Faustine.git] / interpretor / faust-0.9.47mr3 / compiler / main.cpp
1 /************************************************************************
2 ************************************************************************
3 FAUST compiler
4 Copyright (C) 2003-2004 GRAME, Centre National de Creation Musicale
5 ---------------------------------------------------------------------
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 ************************************************************************
20 ************************************************************************/
21 #define FAUSTVERSION "0.9.47mr.2"
22
23 #include <stdio.h>
24 #include <string.h>
25 #include <assert.h>
26
27 #include <map>
28 #include <string>
29 #include <vector>
30 #include <iostream>
31 #include <fstream>
32 #include <sstream>
33
34 #ifndef WIN32
35 #include <unistd.h>
36 #endif
37
38 #include "preprocess/preprocess.hh"
39
40 /*
41 #ifndef WIN32
42 #include <sys/time.h>
43 #include "libgen.h"
44 #endif
45
46 #include "compatibility.hh"
47 #include "signals.hh"
48 #include "sigtype.hh"
49 #include "sigtyperules.hh"
50 #include "sigprint.hh"
51 #include "simplify.hh"
52 #include "privatise.hh"
53
54 #include "compile_scal.hh"
55 #include "compile_vect.hh"
56 #include "compile_sched.hh"
57
58 #include "propagate.hh"
59 #include "errormsg.hh"
60 #include "ppbox.hh"
61 #include "enrobage.hh"
62 #include "eval.hh"
63 #include "description.hh"
64 #include "floats.hh"
65 #include "doc.hh"
66 #include "sourcereader.hh"
67
68
69 // construction des representations graphiques
70
71 #include "schema.h"
72 #include "drawschema.hh"
73 #include "timing.hh"
74 */
75
76 using namespace std ;
77
78 int main (int argc, char* argv[])
79 {
80 //Execute: ./faust -d <dir>
81 //This is a test main for function : preProcess.
82 //<dir> is the file of .dsp for evaluation.
83
84 char* fileRoute = argv[2];
85 char* s;
86 s = preProcess(fileRoute);
87 cout << s << endl;
88 return 0;
89 }