More work towards RNGLR. First, NodeTree is now a template. Second, I've started writing the actual GLR parser and GSS and other things, but am still in the first write process.
This commit is contained in:
17
include/RNGLRParser.h
Normal file
17
include/RNGLRParser.h
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
class RNGLRParser {
|
||||
public:
|
||||
parseInput(std::string inputString);
|
||||
reducer(int i);
|
||||
shifter(int i);
|
||||
private:
|
||||
Lexer lexer;
|
||||
std::vector<Symbol*> input;
|
||||
GraphStructuredStack gss;
|
||||
//start node, lefthand side of the reduction, reduction length
|
||||
std::queue<std::pair< std::pair<GSSNode*, Symbol*>, int > toReduce;
|
||||
//Node coming from, state going to
|
||||
std::queue< std::pair<GSSNode*, int> > toShift;
|
||||
};
|
||||
Reference in New Issue
Block a user