A single step in the SLR(1) guided assistant for table construction. More...
#include <slrwizardpage.h>
Public Member Functions | |
SLRWizardPage (int state, const QString &symbol, const QString &explanation, const QString &expected, QWidget *parent=nullptr) | |
Constructs a page for a specific cell in the SLR(1) table. | |
A single step in the SLR(1) guided assistant for table construction.
This wizard page presents a specific (state, symbol) cell in the SLR(1) parsing table, and prompts the student to enter the correct ACTION or GOTO value.
The page checks the user's input against the expected answer and provides immediate feedback, disabling the "Next" button until the correct response is entered.
|
inline |
Constructs a page for a specific cell in the SLR(1) table.
state | The state ID (row index in the table). |
symbol | The grammar symbol (column header). |
explanation | A pedagogical explanation shown to the user. |
expected | The expected answer (e.g., "s2", "r1", "acc", or a state number). |
parent | The parent widget. |