fix compile errors

This commit is contained in:
IlyaShurupov 2024-02-08 19:16:56 +03:00 committed by Ilusha
parent 1d9ef2aa6c
commit 63b0560375
27 changed files with 19 additions and 21 deletions

View file

@ -0,0 +1,19 @@
#include "CLR.hpp"
using namespace tp;
void CLR::setGrammar(const tp::CfGrammar& grammar) {
if (grammar.isLooped()) {
mState = ParserState::FAILED;
mBuildError.description = "Cant build lalr parser from looped context free grammar";
return;
}
mState = ParserState::FAILED;
}
void CLR::setTerminal(const String& name, TerminalStream::TerminalID id) {}
void CLR::build() {}
void CLR::parse(TerminalStream* source, List<ASTNode>& out, ASTNode** root) { *root = nullptr; }