assertNull(boundedRegexp);
}
public void test3() throws Exception{
Grammar g = new Parser(GrammarTests.DIR + "test_generate_parent.txt").parse();
GrammarStringBounder gsb = new GrammarStringBounder();
Regexp boundedRegexp = gsb.getBoundedRegexp(g, "expr", 4, false);
System.out.println(boundedRegexp);
assertTrue(!boundedRegexp.matches("()"));
assertTrue(boundedRegexp.matches("(())"));
assertTrue(boundedRegexp.matches("()()"));
assertTrue(!boundedRegexp.matches("(((("));