More refactoring of parser to use the token children types directly instead of using a giant switch statement during build_match.

This commit is contained in:
Jonathan Turner
2010-08-15 02:04:35 +00:00
parent 7f037b26d4
commit 58c62f6333
4 changed files with 150 additions and 255 deletions

View File

@@ -143,7 +143,7 @@ int main(int argc, char *argv[]) {
std::cout << ee.what();
if (ee.call_stack.size() > 0) {
std::cout << "during evaluation at (" << ee.call_stack[0]->filename << " " << ee.call_stack[0]->start.line << ", " << ee.call_stack[0]->start.column << ")";
for (int j = 1; j < ee.call_stack.size(); ++j) {
for (unsigned int j = 1; j < ee.call_stack.size(); ++j) {
std::cout << std::endl;
std::cout << " > " << ee.call_stack[j]->filename << " (" << ee.call_stack[j]->start.line << ", " << ee.call_stack[j]->start.column << ")";
}