File: sourcereader.hh

package info (click to toggle)
faust 0.9.9.4b-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,164 kB
  • ctags: 6,050
  • sloc: cpp: 25,384; xml: 4,102; makefile: 648; yacc: 372; ruby: 247; lex: 161; sh: 50
file content (26 lines) | stat: -rw-r--r-- 451 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __SOURCEREADER__
#define __SOURCEREADER__

#include "boxes.hh"
#include <string>
#include <set>

using namespace std;

Tree formatDefinitions(Tree rldef);
Tree checkRulelist (Tree lrules);

class SourceReader 
{
	map<string, Tree>	fFileCache;
	Tree parse(string fname);
	Tree expandrec(Tree ldef, set<string>& visited, Tree lresult);
	
public:
	bool cached(string fname);
	Tree getlist(string fname);
	Tree expandlist(Tree ldef);
};


#endif