FAUST compiler  0.9.9.6b8
sourcereader.hh
Go to the documentation of this file.
1 #ifndef __SOURCEREADER__
2 #define __SOURCEREADER__
3 
4 #include "boxes.hh"
5 #include <string>
6 #include <set>
7 #include <vector>
8 
9 using namespace std;
10 
12 Tree checkRulelist (Tree lrules);
13 void declareMetadata(Tree key, Tree value);
14 void declareDoc(Tree t);
15 
17 {
18  map<string, Tree> fFileCache;
19  vector<string> fFilePathnames;
20  Tree parse(string fname);
21  Tree expandrec(Tree ldef, set<string>& visited, Tree lresult);
22 
23 public:
24  bool cached(string fname);
25  Tree getlist(string fname);
26  Tree expandlist(Tree ldef);
27  vector<string> listSrcFiles();
28 };
29 
30 
31 #endif
Tree checkRulelist(Tree lrules)
A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches.
Definition: tree.hh:109
vector< string > fFilePathnames
Definition: sourcereader.hh:19
map< string, Tree > fFileCache
Definition: sourcereader.hh:18
Tree formatDefinitions(Tree rldef)
Formats a list of raw definitions represented by triplets into abstractions or pa...
void declareDoc(Tree t)
void declareMetadata(Tree key, Tree value)