diff options
Diffstat (limited to 'src/options.cpp')
-rw-r--r-- | src/options.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/options.cpp b/src/options.cpp index 3c016a6..672858a 100644 --- a/src/options.cpp +++ b/src/options.cpp | |||
@@ -7,6 +7,7 @@ | |||
7 | #include "number.h" | 7 | #include "number.h" |
8 | #include "lexer.h" | 8 | #include "lexer.h" |
9 | #include "parser.h" | 9 | #include "parser.h" |
10 | #include "scriptengine.h" | ||
10 | 11 | ||
11 | #include <bu/streamstack.h> | 12 | #include <bu/streamstack.h> |
12 | #include <bu/sio.h> | 13 | #include <bu/sio.h> |
@@ -197,9 +198,11 @@ int Options::execute( Bu::StringArray aArgs ) | |||
197 | Lexer lex( mbIn ); | 198 | Lexer lex( mbIn ); |
198 | lex.setScale( iScale ); | 199 | lex.setScale( iScale ); |
199 | lex.setRadix( iRadix ); | 200 | lex.setRadix( iRadix ); |
200 | Parser parser( lex, mbOut ); | 201 | Parser parser( lex ); |
201 | parser.parse(); | 202 | Expression *pExp = parser.parse(); |
202 | Bu::print( mbOut.getString() ); | 203 | ScriptEngine se; |
204 | Number n = se.exec( pExp ); | ||
205 | Bu::println( n.toString() ); | ||
203 | exit( 0 ); | 206 | exit( 0 ); |
204 | return aArgs.getSize(); | 207 | return aArgs.getSize(); |
205 | } | 208 | } |