"parser grammar t;\n"+
"a[String[\\] ick, int i]\n" +
" : A \n"+
" ;");
Tool antlr = newTool();
CodeGenerator generator = new CodeGenerator(antlr, g, "Java");
g.setCodeGenerator(generator);
generator.genRecognizer(); // forces load of templates
Rule r = g.getRule("a");
AttributeScope parameters = r.parameterScope;
List<Attribute> attrs = parameters.getAttributes();
assertEquals("attribute mismatch","String[] ick",attrs.get(0).decl.toString());
assertEquals("parameter name mismatch","ick",attrs.get(0).name);