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:
3
main.cpp
3
main.cpp
@@ -1,4 +1,5 @@
|
||||
#include "NodeTree.h"
|
||||
#include "Symbol.h"
|
||||
#include "Lexer.h"
|
||||
#include "Parser.h"
|
||||
#include <string>
|
||||
@@ -64,7 +65,7 @@ int main(int argc, char* argv[]) {
|
||||
std::cout << "\n\n\n\n\n\n\n\n\n\nParsing" << std::endl;
|
||||
|
||||
std::cout << programInputFileString << std::endl;
|
||||
NodeTree* parseTree = parser.parseInput(programInputFileString);
|
||||
NodeTree<Symbol*>* parseTree = parser.parseInput(programInputFileString);
|
||||
|
||||
if (parseTree) {
|
||||
std::cout << parseTree->DOTGraphString() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user