public void TestEarlyEval()
{
string templates = "main() ::= <<\n<f(p=\"x\")>*<f(p=\"y\")>\n>>\n\n" +
"f(p,q={<({a<p>})>}) ::= <<\n-<q>-\n>>";
writeFile(tmpdir, "t.stg", templates);
TemplateGroup group = new TemplateGroupFile(Path.Combine(tmpdir, "t.stg"));
Template st = group.GetInstanceOf("main");
string s = st.Render();
Assert.AreEqual("-ax-*-ay-", s);
// Calling inspect led to an java.lang.ArrayIndexOutOfBoundsException in 4.0.2
st.Visualize();
}