package org.simantics.scl.compiler.parser.regexp; import org.simantics.scl.compiler.parser.regexp.automata.DFA; public class TestRegexp { public static void main(String[] args) { Regexp exp = Regexp.of("a*b|ac*"); System.out.println(exp); DFA aut = exp.toAutomaton().determinize().minimize(); System.out.println(aut.toRegexp()); //AutomatonVisualizer.show(aut); } }