public class DrawTest {
public static void main(String[] args) {
RegularExpressionParser reParser = new RegularExpressionParser();
StrategyRE2NFA nfa = NFA.getInstance();
StrategyNFA2DFA dfa = DFA.getInstance();
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Lexer lex = new Lexer();
//dfa.NFA2DFA(lex.process());
//Compiler 285 LR(1)
// nfa.addNFA(reParser.doReversePolishNotation("S"));
// nfa.addNFA(reParser.doReversePolishNotation("CC"));
// nfa.addNFA(reParser.doReversePolishNotation("Cc+C"));
// nfa.addNFA(reParser.doReversePolishNotation("C(c+d|d)"));
// nfa.addNFA(reParser.doReversePolishNotation("c+C"));
// nfa.addNFA(reParser.doReversePolishNotation("c+d|d"));
// dfa.NFA2DFA(nfa.getRootNFA());
//Compiler 285 LR(1)
//Compiler 292 LRLA(1)
dfa.NFA2DFA(TestNFA.getNFS());
//Compiler 292 LRLA(1)
DFAdrawer t = new DFAdrawer(dfa);
f.getContentPane().add(t);
f.pack();