mhorod / cacophony

Repo for epic compiler project made for Compilers course on TCS, JU
7 stars 0 forks source link

Implement parser constructor #52

Closed km1chno closed 2 weeks ago

km1chno commented 3 weeks ago

Implement the constructor for our parser in LLOneParser.kt

fun <State, Symbol : Enum<Symbol>> fromAnalyzedGrammar(
    analyzedGrammar: AnalyzedGrammar<State, Symbol>
): LLOneParser<Symbol> {
    TODO("Not yet implemented")    
}

We decided that in case of conflicts, we throw an error Sorry, this is not a LL(1) grammar:c