summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2013-04-22 13:05:22 -0600
committerMike Buland <mike@xagasoft.com>2013-04-22 13:05:22 -0600
commit2909f50d008920568f0e50da760b266388ccc124 (patch)
tree6789c162a2b950c2006c944e9d21e6ed9bda7069 /src/main.cpp
parentd7ccd9c4d8e5a5bb4f12b36b3e4ad3105c5a9317 (diff)
downloadclic-2909f50d008920568f0e50da760b266388ccc124.tar.gz
clic-2909f50d008920568f0e50da760b266388ccc124.tar.bz2
clic-2909f50d008920568f0e50da760b266388ccc124.tar.xz
clic-2909f50d008920568f0e50da760b266388ccc124.zip
There is now a parser & calculator interface.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d1b9d1c..dec7867 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,9 +1,13 @@
1#include "number.h" 1#include "number.h"
2#include "packedintarray.h" 2#include "packedintarray.h"
3#include "lexer.h"
4#include "token.h"
5#include "parser.h"
3#include <math.h> 6#include <math.h>
4#include <sys/time.h> 7#include <sys/time.h>
5 8
6#include <bu/sio.h> 9#include <bu/sio.h>
10#include <bu/streamstack.h>
7using namespace Bu; 11using namespace Bu;
8 12
9void packedtest1() 13void packedtest1()
@@ -361,12 +365,16 @@ int main( int , char *[] )
361 println("CliC"); 365 println("CliC");
362 366
363// packedtest1(); 367// packedtest1();
364 numbertest1(); 368// numbertest1();
365 numbertestcomp(); 369// numbertestcomp();
366 radixtest(); 370// radixtest();
367 fractest(); 371// fractest();
368// ordertest(); 372// ordertest();
369 373
374 Lexer lex( sioRaw );
375 Parser parser( lex, sioRaw );
376 parser.parse();
377
370 return 0; 378 return 0;
371} 379}
372 380