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 "AST.hpp"
#include "GrammarCompiler.hpp"
#include "Sentence.hpp"
namespace tp {
class Parser {
public:
Parser() = default;
public:
void compileTables(const ContextFreeGrammar& cfGrammar, const RegularGrammar& reGrammar);
void parse(const Sentence& sentence, AST& out);
public:
// save load compiled tables
};
}