| Transforms BNF file into multiple files. Transformations are defined by nested channel elements.
Velocity template engine is used for code generation. Current bnf element (model or rule definition) is accessible through 'element' context object,
'session' context object of type biz.hammurapi.transformica.TransformSession gives access to current Ant project and provides
methods to include other templates or channels and to store information.
<taskdef name="bnftransform" classname="biz.hammurapi.transformica.bnf.BnfTask">
<classpath>
<fileset dir="lib" includes="*.jar"/>
</classpath>
</taskdef>
<bnftransform file="java.bnf">
<channel
outputDir="generated"
type="RuleDefinition"
template="templates/LanguageElement.java"
fileNameTemplate='$${element.name}.java'
>
</channel>
</bnftransform>
author: Pavel Vlasov |