summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2013-05-09 15:24:11 -0600
committerMike Buland <mike@xagasoft.com>2013-05-09 15:24:11 -0600
commitce68e816bd82612c14f3492e8bc969da9bfab06c (patch)
treebe50fa63ce720ecde2748df3df83f38a284c3ff6 /src/main.cpp
parent722e0ef0ea2624c1cd9bd5ca69833e37dc09f97f (diff)
downloadclic-ce68e816bd82612c14f3492e8bc969da9bfab06c.tar.gz
clic-ce68e816bd82612c14f3492e8bc969da9bfab06c.tar.bz2
clic-ce68e816bd82612c14f3492e8bc969da9bfab06c.tar.xz
clic-ce68e816bd82612c14f3492e8bc969da9bfab06c.zip
Added better filtering in Number::set, and cli options.
The command line options let you set the initial radix/scale, and there's a function te test if any number is prime, that's fun.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8e8c19d..c128dd8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -377,6 +377,8 @@ int main( int argc, char *argv[] )
377// ordertest(); 377// ordertest();
378 378
379 Lexer lex( sioRaw ); 379 Lexer lex( sioRaw );
380 lex.setScale( opt.getScale() );
381 lex.setRadix( opt.getRadix() );
380 Parser parser( lex, sioRaw ); 382 Parser parser( lex, sioRaw );
381 parser.parse(); 383 parser.parse();
382 384