package GUIPlugins.SimpleFunctionPlugins;

import GUIPlugins.DisplayPlugins.GrammarGUI;
import GrammarSimulator.Grammar;
import Main.Storable;





public class GrammarLLParsingTable extends SimpleFunctionPlugin {
    @Override
    public Storable execute(Storable object) {
        Grammar grammar = (Grammar) object;
        if(gui.getCurrentDisplayPlugin() instanceof GrammarGUI) {
            GrammarGUI grammarGUI = (GrammarGUI) gui.getCurrentDisplayPlugin();
            grammarGUI.llParsingTableTab(grammar);
        }
        return null;
    }

    @Override
    public String getName() {
        return "LL-Parsing Table";
    }

    @Override
    public Class inputType() {
        return Grammar.class;
    }

    @Override
    Class outputType() {
        return null;
    }
}
