Skip to content

Commit 5898b96

Browse files
committed
add antlr-3.1.3
1 parent db738ff commit 5898b96

File tree

1,709 files changed

+324966
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,709 files changed

+324966
-0
lines changed

antlr-3.1.3/BUILD.txt

Lines changed: 422 additions & 0 deletions
Large diffs are not rendered by default.

antlr-3.1.3/antlr.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fred=99

antlr-3.1.3/gunit/CHANGES.txt

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
gUnit 1.0.5
2+
Nov 25, 2008
3+
4+
Leon, Jen-Yuan Su
5+
leonsu at mac com
6+
7+
CHANGES
8+
9+
Feb 17, 2009
10+
11+
* added new interfaces for GUI editor
12+
13+
* recognizes invalid input as a FAIL case instead of throwing an exception
14+
15+
Steve Ebersole provided a patch for the following two fixes.
16+
* allows setting an output directory (for JUnitCodeGen)
17+
18+
* allows providing a classloader (for both JUnitCodeGen and gUnitExecutor)
19+
20+
Nov 25, 2008
21+
22+
* fixed external test file path issue. if an input test file is not found under the current dir, then try to look for it under the package dir also.
23+
24+
* fixed multiple-line input indentation issue.
25+
26+
* fixed bug: FileNotFoundException terminated gUnit tests due to any non-existent input test file.
27+
28+
* display escaped text for newline characters in the test result for comparing expected and actual string.
29+
30+
Nov 20, 2008
31+
32+
* added new functionality of testing lexical rules
33+
34+
* fixed bug of using PipedInput/Output Stream and changed to ByteArrayOutputStream. Jared Bunting provided a patch on this issue.
35+
36+
* improved jUnit translation mode and moved supporting codes into gUnitBaseTest.
37+
38+
Oct 31, 2008
39+
40+
* fixed bug of testing a tree grammar's template output
41+
42+
July 9, 2008
43+
44+
* fixed bug: program exited upon InvocationTargetException
45+
Sumanto Biswas pointed out the issue and provided suggestions.
46+
47+
* Better handle on test rule's StringTemplate output
48+
49+
May 10, 2008
50+
51+
* added exit code functionality
52+
53+
* fixed string escaping bug for junit generator
54+
55+
1.0.2 - Apr 01, 2008
56+
57+
* fixed grammar bug: multiple-line input, AST output
58+
59+
* adjusted the output of test result
60+
61+
Mar 20, 2008
62+
63+
* moved test result to string template (gUnitTestResult.stg)
64+
65+
* added the display of line of test in the test result
66+
67+
Feb 19, 2008
68+
69+
* fixed bug of displaying test sequence and error message from ANTLR
70+
71+
Feb 8, 2008
72+
73+
* made compatible with ANTLR 3.1b1
74+
75+
1.0.1 - Jan 11, 2008
76+
77+
* Kenny MacDermid helps with code refactoring
78+
79+
1.0 - Aug 20, 2007
80+
81+
Initial early access release

antlr-3.1.3/gunit/LICENSE.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[The "BSD licence"]
2+
Copyright (c) 2007-2008 Leon, Jen-Yuan Su
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions
7+
are met:
8+
9+
1. Redistributions of source code must retain the above copyright
10+
notice, this list of conditions and the following disclaimer.
11+
2. Redistributions in binary form must reproduce the above copyright
12+
notice, this list of conditions and the following disclaimer in the
13+
documentation and/or other materials provided with the distribution.
14+
3. The name of the author may not be used to endorse or promote products
15+
derived from this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20+
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

antlr-3.1.3/gunit/README.txt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
gUnit 1.0.5
2+
Feb 21, 2009
3+
4+
Leon, Jen-Yuan Su
5+
leonsu at mac com
6+
7+
INTRODUCTION
8+
9+
Welcome to gUnit! I've been working on gUnit from 2007 summer and
10+
this is a project in USF CS, sponsored by professor Terence.
11+
12+
You should use the latest ANTLR v3.1 with gUnit:
13+
14+
http://www.antlr.org/download.html
15+
16+
See the wiki document:
17+
18+
http://www.antlr.org/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing
19+
20+
Per the license in LICENSE.txt, this software is not guaranteed to
21+
work and might even destroy all life on this planet:
22+
23+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26+
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
27+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
31+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
32+
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33+
POSSIBILITY OF SUCH DAMAGE.
34+
35+
----------------------------------------------------------------------
36+
37+
EXAMPLES
38+
39+
See the wiki tutorial of gUnit:
40+
41+
http://www.antlr.org/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing
42+
43+
----------------------------------------------------------------------
44+
45+
What is gUnit?
46+
47+
gUnit is an unit testing framework for ANTLR grammars. It provides a
48+
simple way to write and run automated tests for grammars in a manner
49+
similar to what jUnit does for unit testing.
50+
51+
----------------------------------------------------------------------
52+
53+
How do I install gUnit?
54+
55+
Just add gunit-1.0.5.jar to your CLASSPATH, and also make sure that
56+
both ANTLR and StringTemplate jars lie in CLASSPATH.

antlr-3.1.3/gunit/antlr.config

Whitespace-only changes.

antlr-3.1.3/gunit/pom.xml

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>org.antlr</groupId>
5+
<artifactId>gunit</artifactId>
6+
<packaging>jar</packaging>
7+
8+
<name>ANTLR gUnit</name>
9+
<!--
10+
11+
Inherit from the ANTLR master pom, which tells us what
12+
version we are and allows us to inherit dependencies
13+
and so on.
14+
15+
-->
16+
<parent>
17+
<groupId>org.antlr</groupId>
18+
<artifactId>antlr-master</artifactId>
19+
<version>3.1.3</version>
20+
</parent>
21+
22+
<url>http://www.antlr.org/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing</url>
23+
24+
<!--
25+
26+
Define where the ANTLR gUnit jar is deployed both for
27+
the main ANTLR repository, which syncs with the maven main
28+
repository, and the snapshot repository, which can be
29+
used by developers that need the latest development version of
30+
something, but is used here to ensure that snapshot builds of the
31+
ANTLR tool pick up the latest snapshot of the runtime and string tempalte
32+
and whatever else it might need in the future.
33+
-->
34+
<distributionManagement>
35+
36+
<repository>
37+
<id>antlr-repo</id>
38+
<name>ANTLR Testing repository</name>
39+
<url>scpexe://antlr.org/home/mavensync/antlr-repo</url>
40+
</repository>
41+
42+
<snapshotRepository>
43+
<id>antlr-snapshot</id>
44+
<name>ANTLR Testing Snapshot Repository</name>
45+
<url>scpexe://antlr.org/home/mavensync/antlr-snapshot</url>
46+
</snapshotRepository>
47+
48+
</distributionManagement>
49+
50+
<!--
51+
52+
Inform Maven of the ANTLR snapshot repository, which it will
53+
need to consult to get the latest snapshot build of the runtime and so on, should
54+
this project need the latest builds from the antlr snapshots and not the pre-built
55+
released jars from the repository.
56+
-->
57+
<repositories>
58+
59+
<!--
60+
This is the ANTLR repository.
61+
-->
62+
<repository>
63+
<id>antlr-snapshot</id>
64+
<name>ANTLR Testing Snapshot Repository</name>
65+
<url>http://antlr.org/antlr-snapshot</url>
66+
<snapshots>
67+
<updatePolicy>always</updatePolicy>
68+
</snapshots>
69+
</repository>
70+
71+
</repositories>
72+
73+
<!--
74+
75+
Tell Maven which other artifacts we need in order to
76+
build, run and test the ANTLR Tool. The ANTLR Tool uses earlier versions
77+
of ANTLR at runtime (for the moment), uses the current
78+
released version of ANTLR String template, but obviously is
79+
reliant on the latest snapshot of the runtime, which will either be
80+
taken from the antlr-snapshot repository, or your local .m2
81+
repository if you built and installed that locally.
82+
83+
-->
84+
<dependencies>
85+
86+
<dependency>
87+
<groupId>junit</groupId>
88+
<artifactId>junit</artifactId>
89+
<version>4.5</version>
90+
<scope>compile</scope>
91+
</dependency>
92+
93+
<dependency>
94+
<groupId>org.antlr</groupId>
95+
<artifactId>antlr</artifactId>
96+
<version>${project.version}</version>
97+
<scope>compile</scope>
98+
99+
</dependency>
100+
101+
<dependency>
102+
<groupId>org.antlr</groupId>
103+
<artifactId>stringtemplate</artifactId>
104+
<version>3.2</version>
105+
<scope>compile</scope>
106+
</dependency>
107+
108+
109+
110+
</dependencies>
111+
112+
<build>
113+
114+
<defaultGoal>install</defaultGoal>
115+
116+
<plugins>
117+
118+
<plugin>
119+
<groupId>org.antlr</groupId>
120+
<artifactId>antlr3-maven-plugin</artifactId>
121+
<version>${project.version}</version>
122+
<configuration></configuration>
123+
<executions>
124+
<execution>
125+
<goals>
126+
<goal>antlr</goal>
127+
</goals>
128+
</execution>
129+
</executions>
130+
</plugin>
131+
132+
<plugin>
133+
<artifactId>maven-compiler-plugin</artifactId>
134+
<configuration>
135+
<source>1.5</source>
136+
<target>1.5</target>
137+
<sourceDirectory>src</sourceDirectory>
138+
</configuration>
139+
</plugin>
140+
141+
<plugin>
142+
<artifactId>maven-surefire-plugin</artifactId>
143+
</plugin>
144+
145+
<plugin>
146+
<groupId>org.codehaus.mojo</groupId>
147+
<artifactId>findbugs-maven-plugin</artifactId>
148+
<configuration>
149+
<findbugsXmlOutput>true</findbugsXmlOutput>
150+
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
151+
<xmlOutput>true</xmlOutput>
152+
</configuration>
153+
</plugin>
154+
155+
</plugins>
156+
157+
<extensions>
158+
<extension>
159+
<groupId>org.apache.maven.wagon</groupId>
160+
<artifactId>wagon-ssh-external</artifactId>
161+
<version>1.0-beta-2</version>
162+
</extension>
163+
</extensions>
164+
165+
166+
</build>
167+
168+
</project>

0 commit comments

Comments
 (0)