veg/hyphy — pull request #39 by maximumsteve (2011-12-05 23:40:13+00:00)
Title: Parser Separation

This is the initial separation of classes that were once defined in a monolithic parser.cpp and parser2.cpp.

The parser files still exist, but they now only contain functions that do not belong to a class. I will think about this situation and will perhaps look into seeing if we can break some of it up into defined helper functions.

The new files are:
"defines.h"

"constant.h" "constant.cpp"
"formula.h" "formula.cpp"
"fstring.h" "fstring.cpp"
"mathobj.h" "mathobj.cpp"
"operation.h" "operation.cpp"
"stack.h" "stack.cpp"
"variable.h" "variable.cpp"
"variablecontainer.h" "variablecontainer.cpp"

I put the defines in their own header file "defines.h".
This was tested on mac and linux machines.
If any of this seems incorrigible, please feel free to give constructive criticism.

Also, the first few commit messages are horrendous. This was due to myself committing to my local machine, and then forgetting to rebase before pushing to my fork. If they are an issue, I can try rebasing.