Language Initial

This commit is contained in:
IlyaShurupov 2024-02-03 12:18:10 +03:00 committed by Ilya Shurupov
parent 73897f11df
commit b8f2380c60
47 changed files with 831 additions and 14 deletions

View file

@ -0,0 +1,20 @@
#pragma once
#include "Parser.hpp"
namespace tp {
// Gives ability to express grammar in the Unified Format as sentence
class SimpleParser {
public:
SimpleParser();
public:
void compileTables(const Sentence& grammar);
void parse(const Sentence& sentence, AST& out);
private:
Parser mUnifiedGrammarParser;
Parser mUserParser;
};
}