conor 01/02/13 05:29:40
Modified: docs/manual/OptionalTasks Tag: ANT_13_BRANCH mparse.html Log: Updated MParse documentation Submitted by: Stephane Bailliez <[EMAIL PROTECTED]> Revision Changes Path No revision No revision 1.1.2.2 +52 -18 jakarta-ant/docs/manual/OptionalTasks/mparse.html Index: mparse.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/mparse.html,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- mparse.html 2001/02/13 09:40:12 1.1.2.1 +++ mparse.html 2001/02/13 13:29:39 1.1.2.2 @@ -1,16 +1,20 @@ +<!-- saved from url=(0022)http://internet.e-mail --> <html> <head> <meta http-equiv="Content-Language" content="en-us"> -<title>JavaCC Task</title> +<title>MParse Task</title> </head> <body> -<h2><a name="javacc">MParse</a></h2> +<h2><a name="mparse">MParse</a></h2> +<p>by</p> +<ul> + <li>Stephane Bailliez (<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>)</li> +</ul> <h3>Requirements</h3> -<p>This task requires Metamata Development environment 1.1. It does not work as -is with the latest 2.0 version freely available at <a href="http://www.metamata.com">Metamata</a>.</p> +<p>This task requires Metamata Development environment 2.0 freely available at <a href="http://www.metamata.com">Metamata</a>.</p> <h3>Description</h3> <p> Invokes the Metamata <a HREF="http://www.metamata.com/parse.html">MParse</a> compiler @@ -51,32 +55,62 @@ <td valign="top" align="center">Yes</td> </tr> <tr> - <td valign="top">workingdir</td> + <td valign="top">verbose</td> <td valign="top"> - The temporary directory used by MParse. + Enable all messages </td> - <td valign="top" align="center">Yes</td> + <td valign="top" align="center">No</td> + </tr> + <tr> + <td valign="top">debugparser</td> + <td valign="top"> + Enables parser debugging + </td> + <td valign="top" align="center">No</td> + </tr> + <tr> + <td valign="top">debugscanner</td> + <td valign="top"> + Enables scanner debugging + </td> + <td valign="top" align="center">No</td> </tr> <tr> - <td valign="top">cleanuphack</td> - <td valign="top">Remove the stale file as well as the intermediate Sun + <td valign="top">cleanup</td> + <td valign="top">Remove the intermediate Sun JavaCC file created during the transformation of the grammar file.</td> - <td valign="top" align="center">No. Default to false.</td> + <td valign="top" align="center">No. Default to false</td> </tr> + <tr> + <td valign="top">maxmemory</td> + <td valign="top">Set the maximum memory for the JVM. this is a convenient + way to set the -mx or -Xmx argument.</td> + <td valign="top" align="center">No</td> + </tr> </table> <h3>Nested elements</h3> -<h4>userclasspath</h4> -<p> The <tt>userclasspath</tt> element is required and represents a <a href="index.html#path">PATH like +<h4>jvmarg</h4> +<p>Additional parameters may be passed to the VM via nested <code><jvmarg></code> +attributes. <code><jvmarg></code> allows all attributes described in <a href="index.html#arg">Command +line arguments</a>.</p> +<h4>classpath</h4> +<p>Sets class path (also source path unless one explicitly set). Overrides +METAPATH/CLASSPATH environment variables. The <tt>classpath</tt> element represents a <a href="index.html#path">PATH like +structure</a>.</p> +<h4>sourcepath</h4> +<p>Sets source path. Overrides the SOURCEPATH environment variable. The <tt>sourcepath</tt> element represents a <a href="index.html#path">PATH like structure</a>.</p> <h3>Example</h3> -<pre> <mparse target="src/Parser.jj" metamatahome="c:/metamata" workingdir="c:/tmp"> - <userclasspath> - <pathelement location="./lib/dependency.jar"/> - </userclasspath> +<pre> <mparse target="c:/metamata/examples/parseexamples/javagrammars/singlefile/JavaParser.jj" + metamatahome="c:/metamata" cleanup="true"> + <classpath> + <pathelement location="c:/metamata/examples/"/> + </classpath> </mparse></pre> <p> - This invokes Metamata MParse installed in <tt>c:/metamata</tt> on a grammar file <tt>src/Parser.jj</tt> -with a working directory in <tt>c:/tmp</tt> and a specific classpath + This invokes Metamata MParse installed in <tt>c:/metamata</tt> on one of the grammar file +example <tt>(JavaParser.jj)</tt> + and cleans up the intermediate Sun JavaCC file. </p> <hr>
