X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/c7f552fd8888da2f0d8cfb228fe0f28d3df3a12c..b4b6f2ea75b9f0f3ca918f5b84016610bf7a4d4f:/interpretor/preprocessor/faust-0.9.47mr3/compiler/parser/sourcereader.hh diff --git a/interpretor/preprocessor/faust-0.9.47mr3/compiler/parser/sourcereader.hh b/interpretor/preprocessor/faust-0.9.47mr3/compiler/parser/sourcereader.hh new file mode 100644 index 0000000..aecfba6 --- /dev/null +++ b/interpretor/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