diff --git a/antlr-3.1.3.jar b/antlr-3.1.3.jar new file mode 100644 index 0000000..50a8bc7 Binary files /dev/null and b/antlr-3.1.3.jar differ diff --git a/antlr-3.1.3.pom b/antlr-3.1.3.pom new file mode 100644 index 0000000..b5d5212 --- /dev/null +++ b/antlr-3.1.3.pom @@ -0,0 +1,106 @@ + + + 4.0.0 + org.antlr + antlr + jar + ANTLR Grammar Tool + http://antlr.org + + + + + org.antlr + antlr-master + 3.1.3 + + + + org.antlr + antlr-runtime + ${project.version} + compile + + + + junit + junit + 4.5 + test + + + + + + + + + install + + + + + + org.antlr + antlr3-maven-plugin + 3.1.2 + + target/generated-sources/antlr/org/antlr/grammar/v3 + + + + + + antlr + + + + + + + + org.codehaus.mojo + antlr-maven-plugin + + src/main/antlr2/org/antlr/grammar/v2 + antlr.g codegen.g, antlr.print.g, assign.types.g, buildnfa.g, define.g + + + + + generate + + + + + + + maven-compiler-plugin + + 1.5 + 1.5 + src + + + + + + + + diff --git a/antlr-3.2.tar.gz b/antlr-3.2.tar.gz new file mode 100644 index 0000000..2aa3cd8 Binary files /dev/null and b/antlr-3.2.tar.gz differ diff --git a/antlr-master-3.1.3.pom b/antlr-master-3.1.3.pom new file mode 100644 index 0000000..8461781 --- /dev/null +++ b/antlr-master-3.1.3.pom @@ -0,0 +1,254 @@ + + + 4.0.0 + org.antlr + antlr-master + pom + 3.1.3 + ANTLR Master build control POM + http://maven.apache.org + + + + + + + + runtime/Java + tool + antlr3-maven-plugin + gunit + + + + + + antlr-repo + ANTLR Testing repository + scpexe://antlr.org/home/mavensync/antlr-repo + + + + antlr-snapshot + ANTLR Testing Snapshot Repository + scpexe://antlr.org/home/mavensync/antlr-snapshot + + + + + + + + + + antlr-snapshot + ANTLR Testing Snapshot Repository + http://antlr.org/antlr-snapshot + + true + always + + + + + + + + + + + + junit + junit + 4.5 + test + + + + antlr + antlr + 2.7.7 + compile + + + + org.antlr + stringtemplate + 3.2 + compile + + + + + org.antlr + gunit + 3.1.3-SNAPSHOT + runtime + + + + + + + + + + install + + + + antlr.config + + + + + src/main/resources + true + + + + + + + org.codehaus.mojo + buildnumber-maven-plugin + + {0,date,MMM dd, yyyy} {0,time,kk:mm:ss} + + timestamp + + + + + validate + + create + + + + + + + maven-compiler-plugin + + 1.5 + 1.5 + src + + + + + maven-surefire-plugin + + + + org.codehaus.mojo + findbugs-maven-plugin + + true + true + true + + + + + + + + maven-assembly-plugin + + + false + + + + antlrjar.xml + + + + + org.antlr.Tool + + + + + + + + + + + + + org.apache.maven.wagon + wagon-ssh-external + 1.0-beta-2 + + + + + diff --git a/antlr-runtime-3.1.3.jar b/antlr-runtime-3.1.3.jar new file mode 100644 index 0000000..b0a9ea6 Binary files /dev/null and b/antlr-runtime-3.1.3.jar differ diff --git a/antlr-runtime-3.1.3.pom b/antlr-runtime-3.1.3.pom new file mode 100644 index 0000000..2bf6523 --- /dev/null +++ b/antlr-runtime-3.1.3.pom @@ -0,0 +1,119 @@ + + + 4.0.0 + org.antlr + antlr-runtime + jar + + + + org.antlr + antlr-master + 3.1.3 + + + Antlr 3 Runtime + A framework for constructing recognizers, compilers, and translators from grammatical descriptions containing Java, C#, C++, or Python actions. + http://www.antlr.org + + + Terence Parr + USFCA + http://www.cs.usfca.edu + parrt@antlr.org + + Project Leader + Developer - Java Target + + PST + + + Jim Idle + Temporal Wave LLC + http://www.temporal-wave.com + jimi@temporal-wave.com + + Developer - Maven stuff + Developer - C Target + + PST + + + + + http://fisheye2.cenqua.com/browse/antlr + http://fisheye2.cenqua.com/browse/antlr + + + + + + + antlr-repo + ANTLR Testing repository + scpexe://antlr.org/home/mavensync/antlr-repo + + + + antlr-snapshot + ANTLR Testing Snapshot Repository + scpexe://antlr.org/home/mavensync/antlr-snapshot + + + + + + + + org.antlr + stringtemplate + 3.2 + compile + + + + + + install + + + org.apache.maven.wagon + wagon-ssh-external + 1.0-beta-2 + + + + + maven-compiler-plugin + 2.0.2 + + 1.5 + 1.5 + + + + + org.codehaus.mojo + findbugs-maven-plugin + + true + true + true + + + + + + diff --git a/antlr2-usage.patch b/antlr2-usage.patch new file mode 100644 index 0000000..15ba47f --- /dev/null +++ b/antlr2-usage.patch @@ -0,0 +1,61 @@ +--- tool/build.xml.orig 1970-01-01 01:00:00.000000000 +0100 ++++ tool/build.xml 2015-07-07 14:24:35.010405911 +0100 +@@ -0,0 +1,11 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +--- tool/pom.xml.orig 2009-09-23 19:50:28.000000000 +0100 ++++ tool/pom.xml 2015-07-07 14:49:09.811396333 +0100 +@@ -76,19 +76,40 @@ + + + org.codehaus.mojo +- antlr-maven-plugin ++ exec-maven-plugin ++ 1.4.0 + +- src/main/antlr2/org/antlr/grammar/v2 +- antlr.g codegen.g, antlr.print.g, assign.types.g, buildnfa.g, define.g ++ ant + + + ++ generate-sources + +- generate ++ exec + + + + ++ ++ ++ org.codehaus.mojo ++ build-helper-maven-plugin ++ 1.7 ++ ++ ++ add-source ++ generate-sources ++ ++ add-source ++ ++ ++ ++ ${project.build.directory}/generated-sources/antlr ++ ++ ++ ++ ++ + + + maven-compiler-plugin diff --git a/antlr3-maven-plugin-3.1.3-1.jar b/antlr3-maven-plugin-3.1.3-1.jar new file mode 100644 index 0000000..b7e08b2 Binary files /dev/null and b/antlr3-maven-plugin-3.1.3-1.jar differ diff --git a/antlr3-maven-plugin-3.1.3-1.pom b/antlr3-maven-plugin-3.1.3-1.pom new file mode 100644 index 0000000..0a4abfc --- /dev/null +++ b/antlr3-maven-plugin-3.1.3-1.pom @@ -0,0 +1,341 @@ + + + + + + + + 4.0.0 + + + org.antlr + + + + antlr3-maven-plugin + maven-plugin + + + 3.1.3-1 + Maven plugin for ANTLR V3 + + 2.0 + + + + http://antlr.org + + + UTF-8 + + + + +This is the brand new, re-written from scratch plugin for ANTLR v3. + +Previous valiant efforts all suffered from being unable to modify the ANTLR Tool +itself to provide support not just for Maven oriented things but any other tool +that might wish to invoke ANTLR without resorting to the command line interface. + +Rather than try to shoe-horn new code into the existing Mojo (in fact I think that +by incorporating a patch supplied by someone I ended up with tow versions of the +Mojo, I elected to rewrite everything from scratch, including the documentation, so +that we might end up with a perfect Mojo that can do everything that ANTLR v3 supports +such as imported grammar processing, proper support for library directories and +locating token files from generated sources, and so on. + +In the end I decided to also change the the ANTLR Tool.java code so that it +would be the provider of all the things that a build tool needs, rather than +delegating things to 5 different tools. So, things like dependencies, dependency +sorting, option tracking, generating sources and so on are all folded back +in to ANTLR's Tool.java code, where they belong, and they now provide a +public interface to anyone that might want to interface with them. + +One other goal of this rewrite was to completely document the whole thing +to death. Hence even this pom has more comments than funcitonal elements, +in case I get run over by a bus or fall off a cliff while skiing. + +Jim Idle - March 2009 + + + + + + + Jim Idle + http://www.temporal-wave.com + + Originator, version 3.1.3 + + + + + Terence Parr + http://antlr.org/wiki/display/~admin/Home + + Project lead - ANTLR + + + + + David Holroyd + http://david.holroyd.me.uk/ + + Originator - prior version + + + + + Kenny MacDermid + kenny@kmdconsulting.ca + + Contributor - prior versions + + + + + + + + hudson + http://antlr.org/hudson/job/Maven_Plugin/lastSuccessfulBuild/ + + + rss + + + http://antlr.org/hudson/job/Maven_Plugin/rssAll + + + + + + + + JIRA + http://antlr.org/jira/browse/ANTLR + + + + + + repo + The BSD License + http://www.antlr.org/LICENSE.txt + + + + + + + antlr-repo + ANTLR Testing repository + scpexe://antlr.org/home/mavensync/antlr-repo + + + + antlr-snapshot + ANTLR Testing Snapshot Repository + scpexe://antlr.org/home/mavensync/antlr-snapshot + + + + antlr-repo + ANTLR Maven Plugin Web Site + scpexe://antlr.org/home/mavensync/antlr-maven-webs/antlr3-maven-plugin + + + + + + + + + antlr-snapshot + ANTLR Testing Snapshot Repository + http://antlr.org/antlr-snapshot + + true + always + + + + + + + 2009 + + + + http://antlr.markmail.org/ + + http://www.antlr.org/pipermail/antlr-interest/ + + ANTLR Users + http://www.antlr.org/mailman/listinfo/antlr-interest/ + http://www.antlr.org/mailman/options/antlr-interest/ + antlr-interest@antlr.org + + + + + ANTLR.org + http://www.antlr.org + + + + + + + + + org.apache.maven + maven-plugin-api + 2.0 + compile + + + + org.apache.maven + maven-project + 2.0 + + + + org.codehaus.plexus + plexus-compiler-api + 1.5.3 + + + + + org.antlr + antlr + 3.1.3 + + + + + + junit + junit + 4.5 + test + + + + + org.apache.maven.shared + maven-plugin-testing-harness + 1.0 + test + + + + + + + install + + + org.apache.maven.wagon + wagon-ssh-external + 1.0-beta-2 + + + + + maven-compiler-plugin + 2.0.2 + + 1.5 + 1.5 + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + false + + + + + + + diff --git a/antlr32.spec b/antlr32.spec new file mode 100644 index 0000000..62a707e --- /dev/null +++ b/antlr32.spec @@ -0,0 +1,113 @@ +%global bootstrap 0 +%global bootstrap_version 3.1.3 +Name: antlr32 +Version: 3.2 +Release: 1 +Summary: ANother Tool for Language Recognition +License: BSD +URL: http://www.antlr3.org/ +Source0: http://www.antlr3.org/download/antlr-%{version}.tar.gz +%if %{bootstrap} +Source1: https://repo1.maven.org/maven2/org/antlr/antlr-master/%{bootstrap_version}/antlr-master-%{bootstrap_version}.pom +Source2: https://repo1.maven.org/maven2/org/antlr/antlr/%{bootstrap_version}/antlr-%{bootstrap_version}.jar +Source3: https://repo1.maven.org/maven2/org/antlr/antlr/%{bootstrap_version}/antlr-%{bootstrap_version}.pom +Source4: https://repo1.maven.org/maven2/org/antlr/antlr-runtime/%{bootstrap_version}/antlr-runtime-%{bootstrap_version}.jar +Source5: https://repo1.maven.org/maven2/org/antlr/antlr-runtime/%{bootstrap_version}/antlr-runtime-%{bootstrap_version}.pom +Source6: https://repo1.maven.org/maven2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}-1/antlr3-maven-plugin-%{bootstrap_version}-1.jar +Source7: https://repo1.maven.org/maven2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}-1/antlr3-maven-plugin-%{bootstrap_version}-1.pom +%endif +Patch0: java8-compat.patch +Patch1: osgi-manifest.patch +Patch2: antlr2-usage.patch +BuildRequires: maven-local ant-antlr exec-maven-plugin maven-plugin-build-helper +BuildRequires: maven-plugin-bundle maven-plugin-plugin stringtemplate >= 3.2 +%if ! %{bootstrap} +BuildRequires: %{name}-maven-plugin = %{version} +%endif +BuildArch: noarch +%description +ANother Tool for Language Recognition, is a grammar parser generator. +This package is compatibility package containing an older version of +in order to support jython. No other packages should declare a +dependency on this one. + +%package maven-plugin +Summary: Maven plug-in for creating ANTLR-generated parsers +Requires: %{name}-tool = %{version}-%{release} +%description maven-plugin +Maven plug-in for creating ANTLR-generated parsers. + +%package tool +Summary: Command line tool for creating ANTLR-generated parsers +Requires: %{name}-java = %{version}-%{release} +%description tool +Command line tool for creating ANTLR-generated parsers. + +%package java +Summary: Java run-time support for ANTLR-generated parsers +Requires: stringtemplate >= 3.2 +%description java +Java run-time support for ANTLR-generated parsers. + +%package javadoc +Summary: API documentation for ANTLR +%description javadoc +%{summary}. + +%prep +%setup -q -n antlr-%{version} +%patch0 -b .orig +%patch1 -b .orig +%patch2 -b .orig +find -type f -a -name *.jar -delete +find -type f -a -name *.class -delete +find -name "._*" -delete +%pom_disable_module gunit +%pom_disable_module gunit-maven-plugin +%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin +%pom_xpath_remove pom:build/pom:extensions +%pom_xpath_remove pom:build/pom:extensions runtime/Java +%pom_xpath_remove pom:build/pom:extensions antlr3-maven-plugin +%mvn_package :antlr tool +%mvn_package :antlr-master java +%mvn_package :antlr-runtime java +%mvn_package :antlr3-maven-plugin maven-plugin +find -name "pom.xml" | xargs sed -i -e "s|>jsr14<|>1.5<|" +sed -i -e "s|\${buildNumber}|%{release}|" tool/src/main/resources/org/antlr/antlr.properties +%mvn_compat_version 'org.antlr:antlr3-maven-plugin' %{version} %{bootstrap_version}-1 +%mvn_compat_version 'org.antlr:antlr{,-master,-runtime}' %{version} %{bootstrap_version} + +%build +mkdir -p .m2/org/antlr/antlr-master/%{version}/ +cp -p pom.xml .m2/org/antlr/antlr-master/%{version}/antlr-master-%{version}.pom +%if %{bootstrap} +mkdir -p .m2/org/antlr/antlr-master/%{bootstrap_version}/ +cp -p %{SOURCE1} .m2/org/antlr/antlr-master/%{bootstrap_version}/. +mkdir -p .m2/org/antlr/antlr/%{bootstrap_version}/ +cp -p %{SOURCE2} %{SOURCE3} .m2/org/antlr/antlr/%{bootstrap_version}/. +mkdir -p .m2/org/antlr/antlr-runtime/%{bootstrap_version}/ +cp -p %{SOURCE4} %{SOURCE5} .m2/org/antlr/antlr-runtime/%{bootstrap_version}/. +mkdir -p .m2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}/ +cp -p %{SOURCE6} %{SOURCE7} .m2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}/. +%endif +%mvn_build -f + +%install +%mvn_install + +%files tool -f .mfiles-tool +%doc tool/LICENSE.txt + +%files maven-plugin -f .mfiles-maven-plugin +%doc tool/LICENSE.txt + +%files java -f .mfiles-java +%doc tool/LICENSE.txt +%dir %{_datadir}/java/antlr32 + +%files javadoc -f .mfiles-javadoc +%doc tool/LICENSE.txt + +%changelog +* Wed Jul 22 2020 Jeffery.Gao - 3.2-1 +- Package init diff --git a/antlr32.yaml b/antlr32.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/antlr32.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA diff --git a/id_rsa.pub b/id_rsa.pub new file mode 100644 index 0000000..04f2803 --- /dev/null +++ b/id_rsa.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJ9h9S4qIxFtZuZIwLJchB6xMquztAnKGybZoM1rrcrBFLQTmSDNuUP+4S5Hv3ZJF3By1N5NRD3aE2eN0DJv3BXrQRiP/O52zyoE0hnF/MLlRgdTrQ4Ny6rmVB8ctvjB9bxXGWibkk/ApsER3vhuyj8XraYBL+SvvL3vk7Tku6Ty8kF+k5XMzm6YHk7n52vsGuGV31RwHwumG55IINQ5+pvtBZZ73oRONmU4iKpaMzTvH0NKxQiV9avKDev54QVcW6LXBhV78QxwPzZTsmjlpHQlcMbqNkIwM/xsdJtUKx09nBCTatpT5fr4zQyJLluTBHDHDnFBbZLzO5Y8ODNAU1 jeff200902@163.com diff --git a/java8-compat.patch b/java8-compat.patch new file mode 100644 index 0000000..e8ed5b8 --- /dev/null +++ b/java8-compat.patch @@ -0,0 +1,11 @@ +--- tool/src/main/java/org/antlr/tool/CompositeGrammar.java.orig 2014-05-30 00:12:33.360503545 +0100 ++++ tool/src/main/java/org/antlr/tool/CompositeGrammar.java 2014-05-30 00:13:38.533423946 +0100 +@@ -219,7 +219,7 @@ + public List getIndirectDelegates(Grammar g) { + List direct = getDirectDelegates(g); + List delegates = getDelegates(g); +- delegates.removeAll(direct); ++ if ( direct!=null ) delegates.removeAll(direct); + return delegates; + } + diff --git a/osgi-manifest.patch b/osgi-manifest.patch new file mode 100644 index 0000000..f83b777 --- /dev/null +++ b/osgi-manifest.patch @@ -0,0 +1,31 @@ +--- runtime/Java/pom.xml.orig 2009-09-23 19:50:28.000000000 +0100 ++++ runtime/Java/pom.xml 2015-11-17 20:44:01.653318483 +0000 +@@ -96,6 +96,14 @@ + + + ++ org.apache.felixmaven-bundle-plugin ++ bundle-manifestprocess-classesmanifest ++ ++ ${project.build.directory}/osgi ++ org.antlr.runtime!org.antlr.stringtemplate,* ++ ++ ++ + maven-compiler-plugin + 2.0.2 + +@@ -103,7 +110,12 @@ + jsr14 + + +- ++ ++ org.apache.maven.pluginsmaven-jar-plugin ++ ++ ${project.build.directory}/osgi/MANIFEST.MF ++ ++ + + org.codehaus.mojo + findbugs-maven-plugin