|
FAUST compiler
0.9.9.6b8
|
#include <sourcereader.hh>
Public Member Functions | |
| bool | cached (string fname) |
| Check if a file as been read and is in the "cache". More... | |
| Tree | getlist (string fname) |
| Return the list of definitions file contains. More... | |
| Tree | expandlist (Tree ldef) |
| Return the list of definitions where all imports have been expanded. More... | |
| vector< string > | listSrcFiles () |
| Return a vector of pathnames representing the list of all the source files that have been required to evaluate process (those in fFileCache) More... | |
Private Member Functions | |
| Tree | parse (string fname) |
| Parse a single faust source file. More... | |
| Tree | expandrec (Tree ldef, set< string > &visited, Tree lresult) |
Private Attributes | |
| map< string, Tree > | fFileCache |
| vector< string > | fFilePathnames |
Definition at line 16 of file sourcereader.hh.
| bool SourceReader::cached | ( | string | fname | ) |
Check if a file as been read and is in the "cache".
| fname | the name of the file to check |
Definition at line 257 of file sourcereader.cpp.
Return the list of definitions where all imports have been expanded.
| ldef | the list of definitions to expand |
Definition at line 306 of file sourcereader.cpp.
References nil.
Referenced by main(), and realeval().

Definition at line 312 of file sourcereader.cpp.
References cons(), hd(), isImportFile(), isNil(), tl(), and tree2str().

| Tree SourceReader::getlist | ( | string | fname | ) |
Return the list of definitions file contains.
Cache the result.
| fname | the name of the file to check |
Definition at line 270 of file sourcereader.cpp.
Referenced by realeval().

| vector< string > SourceReader::listSrcFiles | ( | ) |
Return a vector of pathnames representing the list of all the source files that have been required to evaluate process (those in fFileCache)
Definition at line 286 of file sourcereader.cpp.
Referenced by declareAutoDoc(), main(), printDoc(), and printfaustlistings().

|
private |
Parse a single faust source file.
returns the list of definitions it contains.
| fname | the name of the file to parse |
Definition at line 189 of file sourcereader.cpp.
References fopensearch(), gResult, http_fetch(), http_perror(), yy_scan_string(), yyerr, yyfilename, yyin, yylineno, yyparse(), and yyrestart().

|
private |
Definition at line 18 of file sourcereader.hh.
|
private |
Definition at line 19 of file sourcereader.hh.
1.8.7