组织ID: |
net.java.dev.javacc |
项目ID: |
javacc |
版本: |
7.0.0 |
最后修改时间: |
2018-08-09 11:19:31 |
包类型: |
jar |
标题: |
JavaCC |
描述: |
JavaCC is a parser/scanner generator for java. |
相关URL: |
https://github.com/javacc/javacc |
大小: |
611.84KB |
|
Maven引入代码: |
<dependency>
<groupId>net.java.dev.javacc</groupId>
<artifactId>javacc</artifactId>
<version>7.0.0</version>
</dependency>
|
Gradle引入代码: |
net.java.dev.javacc:javacc:7.0.0
|
下载Jar包: |
|
POM文件内容: |
<?xml version="1.0"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>net.java.dev.javacc</groupId>
<artifactId>javacc</artifactId>
<packaging>jar</packaging>
<name>JavaCC</name>
<version>${version}</version>
<properties>
<version>7.0.0</version>
</properties>
<description>JavaCC is a parser/scanner generator for java. </description>
<url>https://github.com/javacc/javacc</url>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/javacc/javacc/issues</url>
</issueManagement>
<inceptionYear>1996</inceptionYear>
<organization>
<name>java.net</name>
<url>https://github.com/javacc/javacc</url>
</organization>
<scm>
<connection>scm:git:git@github.com/javacc/javacc.git</connection>
<url>git@github.com/javacc/javacc.git</url>
<developerConnection>scm:git:git@github.com/javacc/javacc.git</developerConnection>
</scm>
<mailingLists>
<mailingList>
<name>Announce</name>
<archive>https://javacc.dev.java.net/servlets/SummarizeList?listName=announce</archive>
</mailingList>
<mailingList>
<name>Users</name>
<archive>https://javacc.dev.java.net/servlets/SummarizeList?listName=users</archive>
</mailingList>
<mailingList>
<name>Developers</name>
<archive>https://javacc.dev.java.net/servlets/SummarizeList?listName=dev</archive>
</mailingList>
<mailingList>
<name>CVS</name>
<archive>https://javacc.dev.java.net/servlets/SummarizeList?listName=cvs</archive>
</mailingList>
<mailingList>
<name>Issues</name>
<archive>https://javacc.dev.java.net/servlets/SummarizeList?listName=issues</archive>
</mailingList>
</mailingLists>
<developers>
<developer>
<name>Sreenivasa Viswanadha</name>
<id>sreeni</id>
<email>sreeni At dev.java.net</email>
<roles>
<role>Owner</role>
</roles>
<timezone>0</timezone>
<organization>java.net</organization>
<organizationUrl>http://www.java.net/</organizationUrl>
</developer>
<developer>
<name>Chris Ainsley</name>
<id>ainsleyc</id>
<email>ainsleyc At dev.java.net</email>
<roles>
<role>Developer</role>
</roles>
<timezone>0</timezone>
<organization>java.net</organization>
<organizationUrl>http://www.java.net/</organizationUrl>
</developer>
<developer>
<name>Tim Pizey</name>
<id>timp</id>
<email>timp AT paneris.org</email>
<roles>
<role>Maven maven</role>
<role>Developer</role>
</roles>
<timezone>0</timezone>
<url>http://paneris.org/~timp</url>
<organization>Context Computing</organization>
<organizationUrl>http://www.context-computing.co.uk/</organizationUrl>
</developer>
<developer>
<name>Francis ANDRE</name>
<id>zosrothko</id>
<email>zosrothko AT orange.fr</email>
<roles>
<role>Developer</role>
</roles>
<timezone>0</timezone>
<url>http://www.kampbell.net</url>
<organization>Kampbell</organization>
<organizationUrl>https://github.com/Kampbell/</organizationUrl>
</developer>
</developers>
<licenses>
<license>
<name>Berkeley Software Distribution (BSD) License</name>
<url>http://www.opensource.org/licenses/bsd-license.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<build>
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>src</testSourceDirectory>
<!-- Uncomment to include grammar sources in jar -->
<!--resources> <resource> <directory>src</directory> <includes> <include>**/*.jj</include>
<include>**/*.jjt</include> </includes> </resource> </resources -->
<!-- NOTE sourceDirectory paths currently configured for Windows due to
http://jira.codehaus.org/browse/MJAVACC-29 -->
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<executions>
<execution>
<id>jcc</id>
<phase>generate-sources</phase>
<goals>
<goal>javacc</goal>
</goals>
<configuration>
<packageName>org.javacc.parser</packageName>
<sourceDirectory>src/main/java/org/javacc/parser</sourceDirectory>
</configuration>
</execution>
<execution>
<id>jjt</id>
<phase>generate-sources</phase>
<goals>
<goal>jjtree</goal>
</goals>
<configuration>
<excludes>
<exclude>**/parser/**</exclude>
</excludes>
<packageName>org.javacc.jjtree</packageName>
<sourceDirectory>src/main/java/org/javacc/jjtree</sourceDirectory>
</configuration>
</execution>
<execution>
<id>jjt-jcc</id>
<phase>generate-sources</phase>
<goals>
<goal>javacc</goal>
</goals>
<configuration>
<packageName>org.javacc.jjtree</packageName>
<sourceDirectory>target/generated-sources/jjtree</sourceDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>5</source>
<target>5</target>
<excludes>
<exclude>**/*Test.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<forkMode>once</forkMode>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>overwrite</id>
<phase>process-sources</phase>
<configuration>
<tasks>
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTBNF.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTBNFAction.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTBNFDeclaration.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTBNFNodeScope.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTCompilationUnit.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTExpansionNodeScope.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTGrammar.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTJavacode.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTJavacodeBody.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTLHS.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTNodeDescriptor.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTNodeDescriptorExpression.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTOptionBinding.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTOptions.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/ASTProduction.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/IO.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/JJTree.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/JJTreeGlobals.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/JJTreeIOException.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/JJTreeOptions.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/JJTreeOptionsTest.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/JJTreeState.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/Main.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/NodeFiles.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/NodeScope.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/SimpleNode.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/Token.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/org/javacc/jjtree/TokenUtils.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTBNF.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTBNFAction.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTBNFDeclaration.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTBNFNodeScope.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTCompilationUnit.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTExpansionNodeScope.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTGrammar.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTJavacode.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTJavacodeBody.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTLHS.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTNodeDescriptor.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTNodeDescriptorExpression.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTOptionBinding.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTOptions.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/ASTProduction.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/IO.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/JJTree.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/JJTreeGlobals.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/JJTreeIOException.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/JJTreeOptions.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/JJTreeOptionsTest.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/JJTreeState.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/Main.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/NodeFiles.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/NodeScope.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/SimpleNode.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/Token.java" />
<delete
file="${project.build.directory}/generated-sources/jjtree/TokenUtils.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/jjtree/Token.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/Action.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/BNFProduction.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/CharacterRange.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/Choice.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/Container.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/Expansion.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/ExpansionTest.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/ExpansionTreeWalker.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/JavaCCErrors.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/JavaCCGlobals.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/JavaCCParserInternals.java" />
<!-- JavaCCParser.java JavaCCParserConstants.java JavaCCParserTokenManager.java
JavaCharStream.java ParseException.java -->
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/JavaCodeProduction.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/JavaFiles.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/LexGen.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/Lookahead.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/LookaheadCalc.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/LookaheadWalk.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/Main.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/MatchInfo.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/MetaParseException.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/Nfa.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/NfaState.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/NonTerminal.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/NormalProduction.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/OneOrMore.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/Options.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/OptionsTest.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/OtherFilesGen.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/ParseEngine.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/ParseGen.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/RCharacterList.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/RChoice.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/REndOfFile.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/RJustName.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/ROneOrMore.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/RRepetitionRange.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/RSequence.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/RStringLiteral.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/RZeroOrMore.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/RZeroOrOne.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/RegExprSpec.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/RegularExpression.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/Semanticize.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/Sequence.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/SingleCharacter.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/Token.java" />
<!-- <delete file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/TokenMgrError.java"
/> -->
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/TokenProduction.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/TreeWalkerOp.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/TryBlock.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/ZeroOrMore.java" />
<delete
file="${project.build.directory}/generated-sources/javacc/org/javacc/parser/ZeroOrOne.java" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>tests</id>
<phase>test</phase>
<configuration>
<tasks>
<!-- Place any ant task here. You can add anything you can add between
<target> and </target> in a build.xml. -->
<mkdir dir="test.tmp" />
<!-- <echo /> <java failonerror="true" fork="true" classname="javacc"
classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/CORBA-IDL
examples/CORBA-IDL/IDL.jj" /> </java> <javac fork="true" srcdir="test.tmp/CORBA-IDL"
/> <copy todir="test.tmp/CORBA-IDL/"> <fileset dir="examples/CORBA-IDL">
<include name="*.idl" /> </fileset> </copy> <java failonerror="true" fork="true"
classname="IDLParser" classpath="test.tmp/CORBA-IDL/" outputproperty="test.corba.out">
<arg line="test.tmp/CORBA-IDL/Hello.idl" /> </java> <echo>${test.corba.out}</echo>
<fail message="CORBA failed"> <condition> <not> <contains string="${test.corba.out}"
substring="IDL file parsed successfully" /> </not> </condition> </fail> <echo
/> <copy todir="test.tmp/GUIParsing/ParserVersion"> <fileset dir="examples/GUIParsing/ParserVersion">
<include name="*.java" /> </fileset> </copy> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/GUIParsing/ParserVersion
examples/GUIParsing/ParserVersion/CalcInput.jj" /> </java> <javac fork="true"
srcdir="test.tmp/GUIParsing/ParserVersion" /> <echo /> <copy todir="test.tmp/GUIParsing/TokenMgrVersion">
<fileset dir="examples/GUIParsing/TokenMgrVersion"> <include name="*.java"
/> </fileset> </copy> <java failonerror="true" fork="true" classname="javacc"
classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/GUIParsing/TokenMgrVersion
examples/GUIParsing/TokenMgrVersion/CalcInput.jj" /> </java> <javac fork="true"
srcdir="test.tmp/GUIParsing/TokenMgrVersion" /> <echo /> <copy todir="test.tmp/Interpreter">
<fileset dir="examples/Interpreter"> <include name="*.java" /> </fileset>
</copy> <java failonerror="true" fork="true" classname="jjtree" classpath="target/classes">
<arg line="-OUTPUT_DIRECTORY=test.tmp/Interpreter examples/Interpreter/SPL.jjt"
/> </java> <java failonerror="true" fork="true" classname="javacc" classpath="target/classes">
<arg line="-OUTPUT_DIRECTORY=test.tmp/Interpreter test.tmp/Interpreter/SPL.jj"
/> </java> <javac fork="true" srcdir="test.tmp/Interpreter" /> <copy todir="test.tmp/Interpreter/">
<fileset dir="examples/Interpreter/"> <include name="*.spl" /> </fileset>
</copy> <java failonerror="true" fork="true" classname="SPL" classpath="test.tmp/Interpreter/"
inputstring="3" outputproperty="spl.out1" > <arg line="test.tmp/Interpreter/fact.spl"
/> </java> <echo>${spl.out1}</echo> <fail message="SPL fact parse failed">
<condition> <not> <contains string="${spl.out1}" substring="Value of fact
: 6" /> </not> </condition> </fail> <java failonerror="true" fork="true"
classname="SPL" classpath="test.tmp/Interpreter/" inputstring="3" outputproperty="spl.out2"
> <arg line="test.tmp/Interpreter/odd.spl" /> </java> <echo>${spl.out2}</echo>
<fail message="SPL odd parse failed"> <condition> <not> <contains string="${spl.out2}"
substring="Value of odd : true" /> </not> </condition> </fail> <java failonerror="true"
fork="true" classname="SPL" classpath="test.tmp/Interpreter/" inputstring="9"
outputproperty="spl.out3" > <arg line="test.tmp/Interpreter/sqrt.spl" />
</java> <echo>${spl.out3}</echo> <fail message="SPL sqrt parse failed"> <condition>
<not> <contains string="${spl.out3}" substring="Value of sqrt : 3" /> </not>
</condition> </fail> <echo /> <java failonerror="true" fork="true" classname="jjtree"
classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/JJTreeExamples.eg1
examples/JJTreeExamples/eg1.jjt" /> </java> <java fork="true" classname="javacc"
classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/JJTreeExamples.eg1
test.tmp/JJTreeExamples.eg1/eg1.jj" /> </java> <javac fork="true" srcdir="test.tmp/JJTreeExamples.eg1"
/> <java failonerror="true" fork="true" classname="Eg1" classpath="test.tmp/JJTreeExamples.eg1/"
inputstring="(a + b) * (c + 1);" outputproperty="jjtree.eg1.out" > </java>
<echo>${jjtree.eg1.out}</echo> <fail message="JJTree eg1 parse failed"> <condition>
<not> <contains string="${jjtree.eg1.out}" substring="Thank you." /> </not>
</condition> </fail> <echo /> <copy todir="test.tmp/JJTreeExamples.eg2">
<fileset dir="examples/JJTreeExamples"> <include name="*.java" /> <exclude
name="Eg4DumpVisitor.java" /> <exclude name="ASTMyOtherID.java" /> </fileset>
</copy> <java failonerror="true" fork="true" classname="jjtree" classpath="target/classes">
<arg line="-OUTPUT_DIRECTORY=test.tmp/JJTreeExamples.eg2 examples/JJTreeExamples/eg2.jjt"
/> </java> <java failonerror="true" fork="true" classname="javacc" classpath="target/classes">
<arg line="-OUTPUT_DIRECTORY=test.tmp/JJTreeExamples.eg2 test.tmp/JJTreeExamples.eg2/eg2.jj"
/> </java> <javac fork="true" srcdir="test.tmp/JJTreeExamples.eg2" /> <java
failonerror="true" fork="true" classname="Eg2" classpath="test.tmp/JJTreeExamples.eg2/"
inputstring="(a + b) * (c + 1);" outputproperty="jjtree.eg2.out" > </java>
<echo>${jjtree.eg2.out}</echo> <fail message="JJTree eg2 parse failed"> <condition>
<not> <contains string="${jjtree.eg2.out}" substring="Thank you." /> </not>
</condition> </fail> <echo /> <copy todir="test.tmp/JJTreeExamples.eg3">
<fileset dir="examples/JJTreeExamples"> <include name="*.java" /> <exclude
name="Eg4DumpVisitor.java" /> <exclude name="ASTMyOtherID.java" /> </fileset>
</copy> <java failonerror="true" fork="true" classname="jjtree" classpath="target/classes">
<arg line="-OUTPUT_DIRECTORY=test.tmp/JJTreeExamples.eg3 examples/JJTreeExamples/eg3.jjt"
/> </java> <java failonerror="true" fork="true" classname="javacc" classpath="target/classes">
<arg line="-OUTPUT_DIRECTORY=test.tmp/JJTreeExamples.eg3 test.tmp/JJTreeExamples.eg3/eg3.jj"
/> </java> <javac fork="true" srcdir="test.tmp/JJTreeExamples.eg3" /> <java
failonerror="true" fork="true" classname="Eg3" classpath="test.tmp/JJTreeExamples.eg3/"
inputstring="(a + b) * (c + 1);" outputproperty="jjtree.eg3.out" > </java>
<echo>${jjtree.eg3.out}</echo> <fail message="JJTree eg3 parse failed"> <condition>
<not> <contains string="${jjtree.eg3.out}" substring="Thank you." /> </not>
</condition> </fail> <echo /> <copy todir="test.tmp/JJTreeExamples.eg4">
<fileset dir="examples/JJTreeExamples"> <include name="*.java" /> </fileset>
</copy> <java failonerror="true" fork="true" classname="jjtree" classpath="target/classes">
<arg line="-OUTPUT_DIRECTORY=test.tmp/JJTreeExamples.eg4 examples/JJTreeExamples/eg4.jjt"
/> </java> <java failonerror="true" fork="true" classname="javacc" classpath="target/classes">
<arg line="-OUTPUT_DIRECTORY=test.tmp/JJTreeExamples.eg4 test.tmp/JJTreeExamples.eg4/eg4.jj"
/> </java> <javac fork="true" srcdir="test.tmp/JJTreeExamples.eg4" /> <java
failonerror="true" fork="true" classname="Eg4" classpath="test.tmp/JJTreeExamples.eg4/"
inputstring="(a + b) * (c + 1);" outputproperty="jjtree.eg4.out" > </java>
<echo>${jjtree.eg4.out}</echo> <fail message="JJTree eg4 parse failed"> <condition>
<not> <contains string="${jjtree.eg4.out}" substring="Thank you." /> </not>
</condition> </fail> -->
<echo />
<java failonerror="true" fork="true" classname="javacc"
classpath="target/classes">
<arg
line="-OUTPUT_DIRECTORY=test.tmp/JavaCCGrammar examples/JavaCCGrammar/JavaCC.jj" />
</java>
<javac fork="true" srcdir="test.tmp/JavaCCGrammar" />
<!-- TODO, test cases for JavaGrammars -->
<!-- <echo /> <java failonerror="true" fork="true" classname="javacc"
classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Lookahead.eg1
examples/Lookahead/Example1.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Lookahead.eg2
examples/Lookahead/Example2.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Lookahead.eg3
examples/Lookahead/Example3.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Lookahead.eg4
examples/Lookahead/Example4.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Lookahead.eg5
examples/Lookahead/Example5.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Lookahead.eg6
examples/Lookahead/Example6.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Lookahead.eg7
examples/Lookahead/Example7.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Lookahead.eg8
examples/Lookahead/Example8.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Lookahead.eg9
examples/Lookahead/Example9.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Lookahead.eg10
examples/Lookahead/Example10.jj" /> </java> <echo /> <java failonerror="true"
fork="true" classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/MailProcessing
examples/MailProcessing/Digest.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/MailProcessing
examples/MailProcessing/Faq.jj" /> </java> <javac fork="true" srcdir="test.tmp/MailProcessing"
/> <echo /> <copy todir="test.tmp/Obfuscator"> <fileset dir="examples/Obfuscator">
<include name="*.java" /> </fileset> </copy> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Obfuscator
examples/Obfuscator/Java1.1.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Obfuscator
examples/Obfuscator/IdsFile.jj" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Obfuscator
examples/Obfuscator/MapFile.jj" /> </java> <javac fork="true" srcdir="test.tmp/Obfuscator"
/> -->
<!-- TODO, test cases for SimpleExamples -->
<!-- <echo /> <copy todir="test.tmp/Transformer"> <fileset dir="examples/Transformer">
<include name="*.java" /> </fileset> </copy> <java failonerror="true" fork="true"
classname="jjtree" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Transformer
examples/Transformer/ToyJava.jjt" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/Transformer
test.tmp/Transformer/ToyJava.jj" /> </java> <javac fork="true" srcdir="test.tmp/Transformer"
/> <echo /> <copy todir="test.tmp/VTransformer"> <fileset dir="examples/VTransformer">
<include name="*.java" /> </fileset> </copy> <java failonerror="true" fork="true"
classname="jjtree" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/VTransformer
examples/VTransformer/Java1.1.jjt" /> </java> <java failonerror="true" fork="true"
classname="javacc" classpath="target/classes"> <arg line="-OUTPUT_DIRECTORY=test.tmp/VTransformer
test.tmp/VTransformer/Java1.1.jj" /> </java> <javac fork="true" srcdir="test.tmp/VTransformer"
/> -->
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.0</version>
<executions>
<execution>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>net.java.dev.javacc</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<configuration>
<sourceDirectory>src/main/java/org/javacc/parser</sourceDirectory>
<packageName>org.javacc.parser</packageName>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<rulesets>
<ruleset>/rulesets/basic.xml</ruleset>
</rulesets>
<minmemory>128m</minmemory>
<maxmemory>256m</maxmemory>
<format>xml</format>
<linkXref>true</linkXref>
<sourceEncoding>utf-8</sourceEncoding>
<minimumTokens>100</minimumTokens>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<configuration>
<tags>
<tag>@todo</tag>
<tag>FIXME</tag>
<tag>@deprecated</tag>
<tag>HACK</tag>
<tag>NOTE</tag>
</tags>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<minmemory>128m</minmemory>
<maxmemory>512m</maxmemory>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<siteDirectory>www</siteDirectory>
<locales>en</locales>
</configuration>
</plugin>
</plugins>
</reporting>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>https://maven2-repository.dev.java.net/nonav/repository</url>
<layout>default</layout>
</repository>
</repositories>
</project>
|
Jar包内容: |
META-INF/MANIFEST.MF
JavaCCInterpreter.class
javacc.class
jjdoc.class
jjtree.class
org.javacc.Version.class
org.javacc.jjdoc.BNFGenerator.class
org.javacc.jjdoc.Generator.class
org.javacc.jjdoc.HTMLGenerator.class
org.javacc.jjdoc.JJDoc.class
org.javacc.jjdoc.JJDocGlobals.class
org.javacc.jjdoc.JJDocMain.class
org.javacc.jjdoc.JJDocOptions.class
org.javacc.jjdoc.TextGenerator.class
org.javacc.jjdoc.XTextGenerator.class
org.javacc.jjtree.ASTBNF.class
org.javacc.jjtree.ASTBNFAction.class
org.javacc.jjtree.ASTBNFAssignment.class
org.javacc.jjtree.ASTBNFChoice.class
org.javacc.jjtree.ASTBNFDeclaration.class
org.javacc.jjtree.ASTBNFLookahead.class
org.javacc.jjtree.ASTBNFNodeScope.class
org.javacc.jjtree.ASTBNFNonTerminal.class
org.javacc.jjtree.ASTBNFOneOrMore.class
org.javacc.jjtree.ASTBNFParenthesized.class
org.javacc.jjtree.ASTBNFSequence.class
org.javacc.jjtree.ASTBNFTryBlock.class
org.javacc.jjtree.ASTBNFZeroOrMore.class
org.javacc.jjtree.ASTBNFZeroOrOne.class
org.javacc.jjtree.ASTCharDescriptor.class
org.javacc.jjtree.ASTCompilationUnit.class
org.javacc.jjtree.ASTExpansionNodeScope.class
org.javacc.jjtree.ASTGrammar.class
org.javacc.jjtree.ASTJavacode.class
org.javacc.jjtree.ASTJavacodeBody.class
org.javacc.jjtree.ASTLHS.class
org.javacc.jjtree.ASTNodeDescriptor.class
org.javacc.jjtree.ASTNodeDescriptorExpression.class
org.javacc.jjtree.ASTOptionBinding.class
org.javacc.jjtree.ASTOptions.class
org.javacc.jjtree.ASTPrimaryExpression.class
org.javacc.jjtree.ASTProduction.class
org.javacc.jjtree.ASTProductions.class
org.javacc.jjtree.ASTRE.class
org.javacc.jjtree.ASTRECharList.class
org.javacc.jjtree.ASTREChoice.class
org.javacc.jjtree.ASTREEOF.class
org.javacc.jjtree.ASTRENamed.class
org.javacc.jjtree.ASTREOneOrMore.class
org.javacc.jjtree.ASTREParenthesized.class
org.javacc.jjtree.ASTREReference.class
org.javacc.jjtree.ASTRESequence.class
org.javacc.jjtree.ASTRESpec.class
org.javacc.jjtree.ASTREStringLiteral.class
org.javacc.jjtree.ASTREZeroOrMore.class
org.javacc.jjtree.ASTREZeroOrOne.class
org.javacc.jjtree.ASTRRepetitionRange.class
org.javacc.jjtree.ASTTokenDecls.class
org.javacc.jjtree.CPPCodeGenerator.class
org.javacc.jjtree.CPPJJTreeState.class
org.javacc.jjtree.CPPNodeFiles.class
org.javacc.jjtree.DefaultJJTreeVisitor.class
org.javacc.jjtree.IO.class
org.javacc.jjtree.JJTJJTreeParserState.class
org.javacc.jjtree.JJTree.class
org.javacc.jjtree.JJTreeGlobals.class
org.javacc.jjtree.JJTreeIOException.class
org.javacc.jjtree.JJTreeNode.class
org.javacc.jjtree.JJTreeOptions.class
org.javacc.jjtree.JJTreeParser$1.class
org.javacc.jjtree.JJTreeParser$JJCalls.class
org.javacc.jjtree.JJTreeParser$LookaheadSuccess.class
org.javacc.jjtree.JJTreeParser.class
org.javacc.jjtree.JJTreeParserConstants.class
org.javacc.jjtree.JJTreeParserTokenManager.class
org.javacc.jjtree.JJTreeParserTreeConstants.class
org.javacc.jjtree.JJTreeParserVisitor.class
org.javacc.jjtree.JJTreeState.class
org.javacc.jjtree.JavaCharStream.class
org.javacc.jjtree.JavaCodeGenerator.class
org.javacc.jjtree.Main.class
org.javacc.jjtree.Node.class
org.javacc.jjtree.NodeFiles.class
org.javacc.jjtree.NodeScope.class
org.javacc.jjtree.ParseException.class
org.javacc.jjtree.SimpleNode.class
org.javacc.jjtree.Token$GTToken.class
org.javacc.jjtree.Token.class
org.javacc.jjtree.TokenMgrError.class
org.javacc.jjtree.TokenMgrException.class
org.javacc.jjtree.TokenUtils.class
org.javacc.parser.Action.class
org.javacc.parser.BNFProduction.class
org.javacc.parser.CPPFiles.class
org.javacc.parser.CharacterRange.class
org.javacc.parser.Choice.class
org.javacc.parser.CodeGenerator.class
org.javacc.parser.CodeProduction.class
org.javacc.parser.Container.class
org.javacc.parser.CppCodeProduction.class
org.javacc.parser.Expansion.class
org.javacc.parser.ExpansionTreeWalker.class
org.javacc.parser.JavaCCErrors.class
org.javacc.parser.JavaCCGlobals.class
org.javacc.parser.JavaCCParser$1.class
org.javacc.parser.JavaCCParser$JJCalls.class
org.javacc.parser.JavaCCParser$LookaheadSuccess.class
org.javacc.parser.JavaCCParser$ModifierSet.class
org.javacc.parser.JavaCCParser.class
org.javacc.parser.JavaCCParserConstants.class
org.javacc.parser.JavaCCParserInternals.class
org.javacc.parser.JavaCCParserTokenManager.class
org.javacc.parser.JavaCharStream.class
org.javacc.parser.JavaCodeProduction.class
org.javacc.parser.JavaFiles$JavaModernResourceTemplateLocationImpl.class
org.javacc.parser.JavaFiles$JavaResourceTemplateLocationImpl.class
org.javacc.parser.JavaFiles$JavaResourceTemplateLocations.class
org.javacc.parser.JavaFiles.class
org.javacc.parser.KindInfo.class
org.javacc.parser.LexGen.class
org.javacc.parser.LexGenCPP.class
org.javacc.parser.Lookahead.class
org.javacc.parser.LookaheadCalc.class
org.javacc.parser.LookaheadWalk.class
org.javacc.parser.Main.class
org.javacc.parser.MatchInfo.class
org.javacc.parser.MetaParseException.class
org.javacc.parser.Nfa.class
org.javacc.parser.NfaState.class
org.javacc.parser.NonTerminal.class
org.javacc.parser.NormalProduction.class
org.javacc.parser.OneOrMore.class
org.javacc.parser.Options$Language.class
org.javacc.parser.Options.class
org.javacc.parser.OtherFilesGen.class
org.javacc.parser.OtherFilesGenCPP.class
org.javacc.parser.OutputFile$1.class
org.javacc.parser.OutputFile$NullOutputStream.class
org.javacc.parser.OutputFile$TrapClosePrintWriter.class
org.javacc.parser.OutputFile.class
org.javacc.parser.ParseEngine.class
org.javacc.parser.ParseException.class
org.javacc.parser.ParseGen.class
org.javacc.parser.ParseGenCPP.class
org.javacc.parser.ParserCodeGenerator.class
org.javacc.parser.ParserData$LookaheadInfo.class
org.javacc.parser.ParserData$LookaheadType.class
org.javacc.parser.ParserData.class
org.javacc.parser.Phase3Data.class
org.javacc.parser.RCharacterList.class
org.javacc.parser.RChoice.class
org.javacc.parser.REndOfFile.class
org.javacc.parser.RJustName.class
org.javacc.parser.ROneOrMore.class
org.javacc.parser.RRepetitionRange.class
org.javacc.parser.RSequence.class
org.javacc.parser.RStringLiteral.class
org.javacc.parser.RZeroOrMore.class
org.javacc.parser.RZeroOrOne.class
org.javacc.parser.RegExprSpec.class
org.javacc.parser.RegularExpression.class
org.javacc.parser.Semanticize$EmptyChecker.class
org.javacc.parser.Semanticize$FixRJustNames.class
org.javacc.parser.Semanticize$LookaheadChecker.class
org.javacc.parser.Semanticize$LookaheadFixer.class
org.javacc.parser.Semanticize$ProductionDefinedChecker.class
org.javacc.parser.Semanticize.class
org.javacc.parser.Sequence.class
org.javacc.parser.SingleCharacter.class
org.javacc.parser.TableDrivenJavaCodeGenerator$1.class
org.javacc.parser.TableDrivenJavaCodeGenerator.class
org.javacc.parser.Token$GTToken.class
org.javacc.parser.Token.class
org.javacc.parser.TokenManagerCodeGenerator.class
org.javacc.parser.TokenMgrError.class
org.javacc.parser.TokenProduction.class
org.javacc.parser.TokenizerData$MatchInfo.class
org.javacc.parser.TokenizerData$MatchType.class
org.javacc.parser.TokenizerData$NfaState.class
org.javacc.parser.TokenizerData.class
org.javacc.parser.TreeWalkerOp.class
org.javacc.parser.TryBlock.class
org.javacc.parser.ZeroOrMore.class
org.javacc.parser.ZeroOrOne.class
org.javacc.utils.ConditionParser.class
org.javacc.utils.ConditionParserConstants.class
org.javacc.utils.ConditionParserTokenManager.class
org.javacc.utils.JavaCharStream.class
org.javacc.utils.OptionInfo.class
org.javacc.utils.OptionType.class
org.javacc.utils.OutputFileGenerator.class
org.javacc.utils.ParseException.class
org.javacc.utils.Token.class
#内容未全部加载,请点击展开加载全部代码(NowJava.com)
|
依赖Jar: |
junit-3.8.1.jar
/junit/junit/3.8.1
查看junit所有版本文件
|