diff options
Diffstat (limited to 'tool/src/main/resources/org/antlr/tool/templates/depend.stg')
-rw-r--r-- | tool/src/main/resources/org/antlr/tool/templates/depend.stg | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tool/src/main/resources/org/antlr/tool/templates/depend.stg b/tool/src/main/resources/org/antlr/tool/templates/depend.stg new file mode 100644 index 0000000..c093054 --- /dev/null +++ b/tool/src/main/resources/org/antlr/tool/templates/depend.stg @@ -0,0 +1,12 @@ +/** templates used to generate make-compatible dependencies */ +group depend; + +/** Generate "f : x, y, z" dependencies for input + * dependencies and generated files. in and out + * are File objects. For example, you can say + * <f.canonicalPath> + */ +dependencies(grammarFileName,in,out) ::= << +<if(in)><grammarFileName>: <in; separator=", "><endif> +<out:{f | <f> : <grammarFileName>}; separator="\n"> +>> |