X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/1059e1cc0c2ecfa237406949aa26155b6a5b9154..66f23d4fabf89ad09adbd4dfc15ac6b5b2b7da83:/interpreter/preprocessor/faust-0.9.47mr3/compiler/parser/sourcereader.hh diff --git a/interpreter/preprocessor/faust-0.9.47mr3/compiler/parser/sourcereader.hh b/interpreter/preprocessor/faust-0.9.47mr3/compiler/parser/sourcereader.hh new file mode 100644 index 0000000..aecfba6 --- /dev/null +++ b/interpreter/preprocessor/faust-0.9.47mr3/compiler/parser/sourcereader.hh @@ -0,0 +1,31 @@ +#ifndef __SOURCEREADER__ +#define __SOURCEREADER__ + +#include "boxes.hh" +#include +#include +#include + +using namespace std; + +Tree formatDefinitions(Tree rldef); +Tree checkRulelist (Tree lrules); +void declareMetadata(Tree key, Tree value); +void declareDoc(Tree t); + +class SourceReader +{ + map fFileCache; + vector fFilePathnames; + Tree parse(string fname); + Tree expandrec(Tree ldef, set& visited, Tree lresult); + +public: + bool cached(string fname); + Tree getlist(string fname); + Tree expandlist(Tree ldef); + vector listSrcFiles(); +}; + + +#endif