Language Initial
This commit is contained in:
parent
14cb588948
commit
fae4d83f97
47 changed files with 831 additions and 14 deletions
20
Language/public/SimpleParser.hpp
Normal file
20
Language/public/SimpleParser.hpp
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue