Cleaned up and added line number to error messages

This commit is contained in:
Nathan Braswell
2014-02-20 18:24:04 -05:00
parent 37cffac9cd
commit 7f902880c5
2 changed files with 17 additions and 3 deletions

View File

@@ -39,6 +39,8 @@ class RNGLRParser: public Parser {
std::vector<NodeTree<Symbol>*> getPathEdges(std::vector<NodeTree<int>*> path);
int findLine(int tokenNum); //Get the line number for a token, used for error reporting
std::vector<Symbol> input;
GraphStructuredStack gss;
//start node, lefthand side of the reduction, reduction length