SyntaxTutor
Educational app designed to help compiler students understand LL(1) and SLR(1) parsing algorithms.
 
Loading...
Searching...
No Matches
SLRWizardPage Class Reference

A single step in the SLR(1) guided assistant for table construction. More...

#include <slrwizardpage.h>

Inheritance diagram for SLRWizardPage:
Collaboration diagram for SLRWizardPage:

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SLRWizardPage()

SLRWizardPage::SLRWizardPage ( int state,
const QString & symbol,
const QString & explanation,
const QString & expected,
QWidget * parent = nullptr )
inline

Constructs a page for a specific cell in the SLR(1) table.

Parameters
stateThe state ID (row index in the table).
symbolThe grammar symbol (column header).
explanationA pedagogical explanation shown to the user.
expectedThe expected answer (e.g., "s2", "r1", "acc", or a state number).
parentThe parent widget.

The documentation for this class was generated from the following file: