HF RL Explorer

Task: Implement an SLR(1) and LALR(1) Parser Table Generator and Grammar Classifier

Task: Implement an SLR(1) and LALR(1) Parser Table Generator and Grammar Classifier: a task in Terminal-Lego-15k (Harbor dataset). Implement a program that constructs SLR(1) and LALR(1) parsing tables for context-free grammars, and determines whether a given grammar belongs to the SLR(1), LALR(1)…

The task

Implement a program that constructs SLR(1) and LALR(1) parsing tables for context-free grammars, and determines whether a given grammar belongs to the SLR(1), LALR(1), or LR(1) class. This task tests your understanding of the differences between these parser types, specifically how their lookahead sets and table…

Part of PrimeIntellect/Terminal-Lego-15k.