summaryrefslogtreecommitdiff
path: root/synth/parser.h
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2011-01-01 17:12:35 +0100
committerFlorian Jung <flo@thinkpad.(none)>2011-01-01 17:12:35 +0100
commitae8c1183ac4f9a3e3c54ac7fb57fe7d1631d1740 (patch)
tree3cfc1d78f0f280ccc80378f3441c0e0fd86ddba0 /synth/parser.h
parent5c3634f48144d965c7f37e4d37b7f123fc18d7c3 (diff)
Replace class Parser with function parse()
Diffstat (limited to 'synth/parser.h')
-rw-r--r--synth/parser.h32
1 files changed, 1 insertions, 31 deletions
diff --git a/synth/parser.h b/synth/parser.h
index 192226e..0af3c6a 100644
--- a/synth/parser.h
+++ b/synth/parser.h
@@ -12,36 +12,6 @@
using namespace std;
-class Parser
-{
- public:
- Parser();
- ~Parser();
- void parse(string fn);
- program_t get_results() const;
-
- private:
- void init_stuff();
- void uninit_stuff();
- static string extract_array_name(string s);
- static list<string> extract_terms(string s);
- static list<string> extract_factors(string s);
- static list<term_t> extract_formula(string s);
- static param_factor_t parse_pfactor(string s);
- static int extract_array_index(string s, int dim);
-
- int n_osc;
- oscillator_t *osc;
- env_settings_t *env;
- set<parameter_t> affect[128];
- map< parameter_t, list<term_t> > formula;
- int controller_default[128];
- filter_params_t filter;
-
- pfactor_formula_t pfactor;
-
- fixed_t sync_factor;
-};
-
+program_t parse(string fn);
#endif