MCPcopy Create free account
hub / github.com/antlr/codebuff / test4

Method test4

output/java/1.4.13/STViz.java:510–521  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

508 }
509
510 public static void test4() throws IOException
511 {
512 String templates = "main(t) ::= <<\n"+"hi: <t>\n"+">>\n"+"foo(x,y={hi}) ::= \"<bar(x,y)>\"\n"+"bar(x,y) ::= << <y> >>\n"+"ignore(m) ::= \"<m>\"\n";
513 STGroup group = new STGroupString(templates);
514 ST st = group.getInstanceOf("main");
515 ST foo = group.getInstanceOf("foo");
516 st.add("t", foo);
517 ST ignore = group.getInstanceOf("ignore");
518 ignore.add("m", foo); // embed foo twice!
519 st.inspect();
520 st.render();
521 }
522
523 public static void writeFile(String dir, String fileName, String content) {
524 try {

Callers 1

mainMethod · 0.95

Calls 4

addMethod · 0.95
inspectMethod · 0.95
renderMethod · 0.95
getInstanceOfMethod · 0.45

Tested by

no test coverage detected