Big chunk of changes:
authorDejan Jovanović <dejan.jovanovic@gmail.com>
Sun, 6 Dec 2009 02:21:46 +0000 (02:21 +0000)
committerDejan Jovanović <dejan.jovanovic@gmail.com>
Sun, 6 Dec 2009 02:21:46 +0000 (02:21 +0000)
commitc16be5841e613818d5764e4de99e4694a0703685
tree5bf7c07a8f7200c2830d50f5dd83ecbb4f02444d
parent200f36785acf7aac3e7e230795ea7ffdb6b1ed64
Big chunk of changes:

* Fixed bugs in option parsing
* Simplified the main.cpp significantly (more c++ like)
* Added the null kind, expr value, and expression, with the default constructor public
* Simplified commands, we need to discuss this in the meeting (what to do with command results?)
* Removed all the lex/yacc files
* Symbol table is now a templated class, as we will have tables for variables, predicates and functions
* The ANTLR parsing infrastructure/makefiles is all in. SMT lib Boolean benchmarks should parse + giving nice error such as
      Parse Error: /home/dejan/eclipse-cxx/smtlib-parser/test/test4.smt:3:16: Undeclared variable p
      Parse Error: /home/dejan/eclipse-cxx/smtlib-parser/test/test2.smt:2:11: unexpected token: sa

Didn't add any unit tests as the unit testing doesn't work with the updated build system -- it doesn't know how to create directories in the corresponding build directory.

TODO:
 * add the PL grammar and unit test when the testing becomes available
 * with this build setup my eclipse debugger doesn't work.  Might have something to do with the visibility of symbols?
 * i'm getting g++ depracated warnings regarding the hash_map from the symbol table, need to figure out how to use it in a standard manner. the new <unordered_map> header is for C++0x, and the <ext/hash_map> is getting deprecation warningns... weird.
31 files changed:
.cproject
.project
configure.ac
src/expr/expr.cpp
src/expr/expr.h
src/expr/expr_value.cpp
src/expr/expr_value.h
src/expr/kind.h
src/main/getopt.cpp
src/main/main.cpp
src/main/main.h
src/parser/Makefile.am
src/parser/antlr_parser.cpp
src/parser/antlr_parser.h
src/parser/language.h [deleted file]
src/parser/parser.cpp
src/parser/parser.h
src/parser/parser_state.cpp [deleted file]
src/parser/parser_state.h [deleted file]
src/parser/pl.ypp [deleted file]
src/parser/pl_scanner.lpp [deleted file]
src/parser/smt/Makefile.am
src/parser/smt/SmtLexer.g
src/parser/smt/SmtParser.g
src/parser/smtlib.ypp [deleted file]
src/parser/smtlib_scanner.lpp [deleted file]
src/parser/symbol_table.cpp [deleted file]
src/parser/symbol_table.h
src/util/command.cpp
src/util/command.h
src/util/options.h