});
}
public static class TestCaseMakerHelper extends MG {
- public static @tag("grammaro") @raw Object grammaro(Iterable<Tree> t) {
+ public static @bind.as("grammaro") @raw Object grammaro(Iterable<Tree> t) {
System.out.println("working on " + t);
return Demo.make(t.iterator().next(), "s", new ReflectiveMetaPlain());
}
- //public static @tag("tca") Object tca(Object[] o) throws IOException {
+ //public static @bind.as("tca") Object tca(Object[] o) throws IOException {
//return new TestCase((String)o[0], (String[])o[1], (Union)o[2], false, false); }
- public static @tag("tca") Object tca(String input, String[] output, Union u) throws IOException {
+ public static @bind.as("tca") Object tca(String input, String[] output, Union u) throws IOException {
return new TestCase(input, output, u, false, false); }
- public static @tag("tcb") Object tca(String input, Union u) throws IOException {
+ public static @bind.as("tcb") Object tca(String input, Union u) throws IOException {
return new TestCase(input, new String[0], u, false, false); }
- public static @tag("ts") TestCase[] go(TestCase[] cases) { return cases; }
- public static @tag("o") Object o(Object[] s) { return s; }
+ public static @bind.as("ts") TestCase[] go(TestCase[] cases) { return cases; }
+ public static @bind.as("o") Object o(Object[] s) { return s; }
}
}