You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2006/09/15 15:47:23 UTC

svn commit: r446612 - /maven/plugins/trunk/maven-antlr-plugin/src/site/apt/examples/inheritance.apt

Author: vsiveton
Date: Fri Sep 15 06:47:23 2006
New Revision: 446612

URL: http://svn.apache.org/viewvc?view=rev&rev=446612
Log:
o added grammar inheritance documentation

Added:
    maven/plugins/trunk/maven-antlr-plugin/src/site/apt/examples/inheritance.apt   (with props)

Added: maven/plugins/trunk/maven-antlr-plugin/src/site/apt/examples/inheritance.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-antlr-plugin/src/site/apt/examples/inheritance.apt?view=auto&rev=446612
==============================================================================
--- maven/plugins/trunk/maven-antlr-plugin/src/site/apt/examples/inheritance.apt (added)
+++ maven/plugins/trunk/maven-antlr-plugin/src/site/apt/examples/inheritance.apt Fri Sep 15 06:47:23 2006
@@ -0,0 +1,67 @@
+ ------
+ Grammar Inheritance
+ ------
+ Vincent Siveton
+ ------
+ September 2006
+ ------
+
+ ~~ Copyright 2006 The Apache Software Foundation.
+ ~~
+ ~~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~~ you may not use this file except in compliance with the License.
+ ~~ You may obtain a copy of the License at
+ ~~
+ ~~      http://www.apache.org/licenses/LICENSE-2.0
+ ~~
+ ~~ Unless required by applicable law or agreed to in writing, software
+ ~~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~~ See the License for the specific language governing permissions and
+ ~~ limitations under the License.
+
+ ~~ NOTE: For help with the syntax of this file, see:
+ ~~ http://maven.apache.org/guides/mini/guide-apt-format.html
+
+
+Grammar Inheritance
+
+ To set "supergrammars" available to some grammar, use the \<grammarDefs\> configuration in your pom:
+
++-----+
+<project>
+...
+  <build>
+    <plugins>
+      ...
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antlr-plugin</artifactId>
+        <configuration>
+          <!--
+            By default, grammar files are in ${basedir}/src/main/antlr
+          -->
+         <grammarDefs>
+            <grammar>
+              <name>StdCParser.g</name>
+            </grammar>
+            <grammar>
+              <name>GnuCParser.g</name>
+              <glib>StdCParser.g</glib>
+            </grammar>
+            <grammar>
+              <name>GnuCTreeParser.g</name>
+            </grammar>
+            <grammar>
+              <name>GnuCEmitter.g</name>
+              <glib>GnuCTreeParser.g</glib>
+            </grammar>
+          </grammarDefs>
+        </configuration>
+      </plugin>
+      ...
+    </plugins>
+  </build>
+...
+</project>
++-----+

Propchange: maven/plugins/trunk/maven-antlr-plugin/src/site/apt/examples/inheritance.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-antlr-plugin/src/site/apt/examples/inheritance.apt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"