diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-01-01 17:02:53 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-01-01 17:02:53 +0100 |
commit | 5e731c349b63a557b2e705ce3cd741f90c62c694 (patch) | |
tree | 7b7206f38183f3d8ca437c1dac25ec82748371d6 /note_compiler/parser.h | |
parent | d9fd174884bf999fa53216b2cc307379fe9b1084 (diff) |
Replace class Parser with function parse()
Diffstat (limited to 'note_compiler/parser.h')
-rw-r--r-- | note_compiler/parser.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/note_compiler/parser.h b/note_compiler/parser.h index 3e60051..71e7545 100644 --- a/note_compiler/parser.h +++ b/note_compiler/parser.h @@ -7,34 +7,10 @@ #include <list> #include <string> -#include "../synth/fixed.h" #include "programs.h" using namespace std; -class Parser -{ - public: - Parser(); - ~Parser(); - void parse(string fn); - - program_t get_result(); - - private: - void init_stuff(); - void uninit_stuff(); - static string extract_array_name(string s); - static int extract_array_index(string s, int dim); - - int n_osc; - oscillator_t *osc; - env_settings_t *env; - filter_params_t filter; - - fixed_t sync_factor; - bool sync_factor_const; -}; - +program_t parse(string fn); #endif |