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/main.cpp | |
parent | d9fd174884bf999fa53216b2cc307379fe9b1084 (diff) |
Replace class Parser with function parse()
Diffstat (limited to 'note_compiler/main.cpp')
-rw-r--r-- | note_compiler/main.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/note_compiler/main.cpp b/note_compiler/main.cpp index 3d59c3b..cd83eee 100644 --- a/note_compiler/main.cpp +++ b/note_compiler/main.cpp @@ -9,13 +9,8 @@ using namespace std; int main(int argc, char** argv) { - Parser parser; - program_t p; - - parser.parse("../../velotest.prog"); + program_t p=parse("../../velotest.prog"); - p=parser.get_result(); - cout << "n_osc="<<p.n_osc<<endl; for (int i=0;i<p.n_osc;i++) { |