LR(1) Parser Initial
This commit is contained in:
parent
616441e049
commit
01b6f9099c
8 changed files with 161 additions and 46 deletions
|
|
@ -77,6 +77,7 @@ namespace tp {
|
|||
|
||||
Map<String, Terminal> mTerminals;
|
||||
Map<String, NonTerminal> mNonTerminals;
|
||||
bool mIsLooped = false;
|
||||
|
||||
public:
|
||||
static struct CfGrammarParserState* initializeCfGrammarParser();
|
||||
|
|
@ -89,7 +90,6 @@ namespace tp {
|
|||
void generateSentences(List<Sentence>& out);
|
||||
static void printSentence(Sentence& in);
|
||||
|
||||
private:
|
||||
void optimize();
|
||||
[[nodiscard]] bool isLooped() const;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue