summaryrefslogtreecommitdiff
path: root/note_compiler/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'note_compiler/main.cpp')
-rw-r--r--note_compiler/main.cpp7
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++)
{