parent
e9637cb1f7
commit
bef0cfce41
@ -1,2 +1,3 @@
|
|||||||
java_cup_v10k.tar.gz
|
java_cup_v10k.tar.gz
|
||||||
java_cup-0.11a.tar.bz2
|
java_cup-0.11a.tar.bz2
|
||||||
|
/java_cup-0.11b.tar.bz2
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
CUP Parser Generator Copyright Notice, License, and Disclaimer
|
|
||||||
Copyright 1996-1999 by Scott Hudson, Frank Flannery, C. Scott Ananian
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and distribute this software and its
|
|
||||||
documentation for any purpose and without fee is hereby granted,
|
|
||||||
provided that the above copyright notice appear in all copies and that
|
|
||||||
both the copyright notice and this permission notice and warranty
|
|
||||||
disclaimer appear in supporting documentation, and that the names of the
|
|
||||||
authors or their employers not be used in advertising or publicity
|
|
||||||
pertaining to distribution of the software without specific, written
|
|
||||||
prior permission.
|
|
||||||
|
|
||||||
The authors and their employers disclaim all warranties with regard to
|
|
||||||
this software, including all implied warranties of merchantability and
|
|
||||||
fitness. In no event shall the authors or their employers be liable for
|
|
||||||
any special, indirect or consequential damages or any damages whatsoever
|
|
||||||
resulting from loss of use, data or profits, whether in an action of
|
|
||||||
contract, negligence or other tortious action, arising out of or in
|
|
||||||
connection with the use or performance of this software.
|
|
@ -1,24 +0,0 @@
|
|||||||
From 447c8beb89190adc2c51c533e93ad26f8eaf34d9 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Lubomir Rintel <lkundrak@v3.sk>
|
|
||||||
Date: Sat, 4 Dec 2010 10:27:15 -0500
|
|
||||||
Subject: [PATCH] Remove class path from jar manifest
|
|
||||||
|
|
||||||
---
|
|
||||||
build.xml | 1 -
|
|
||||||
1 files changed, 0 insertions(+), 1 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.xml b/build.xml
|
|
||||||
index 06170de..06e2a7d 100644
|
|
||||||
--- a/build.xml
|
|
||||||
+++ b/build.xml
|
|
||||||
@@ -62,7 +62,6 @@
|
|
||||||
<jar jarfile="${dist}/java-cup-11a.jar" basedir="${classes}">
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Main-Class" value="java_cup/Main" />
|
|
||||||
- <attribute name="Class-Path" value="java-cup-11a-runtime.jar" />
|
|
||||||
</manifest>
|
|
||||||
</jar>
|
|
||||||
<jar jarfile="${dist}/java-cup-11a-runtime.jar" basedir="${classes}" includes="java_cup/runtime/*">
|
|
||||||
--
|
|
||||||
1.7.3.1
|
|
||||||
|
|
@ -1,22 +1,40 @@
|
|||||||
--- build.xml.sav 2006-03-28 14:34:52.000000000 +0300
|
--- build.xml~ 2014-06-12 17:23:24.000000000 +0200
|
||||||
+++ build.xml 2010-01-08 12:50:20.346608627 +0200
|
+++ build.xml 2015-06-23 10:30:57.374976304 +0200
|
||||||
@@ -76,4 +76,19 @@
|
@@ -17,18 +17,6 @@
|
||||||
</java>
|
<mkdir dir="${java}" />
|
||||||
|
<mkdir dir="${classes}" />
|
||||||
|
<mkdir dir="${dist}" />
|
||||||
|
- <loadfile property="cupversion" srcFile="version.txt"/>
|
||||||
|
- <exec executable="svn" outputproperty="svnversion">
|
||||||
|
- <arg value="info"/>
|
||||||
|
- <redirector>
|
||||||
|
- <outputfilterchain>
|
||||||
|
- <linecontains>
|
||||||
|
- <contains value="Revision"/>
|
||||||
|
- </linecontains>
|
||||||
|
- <deletecharacters chars="Revision: "/>
|
||||||
|
- </outputfilterchain>
|
||||||
|
- </redirector>
|
||||||
|
- </exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<property environment="env" />
|
||||||
|
@@ -78,7 +66,6 @@
|
||||||
|
<jar jarfile="${dist}/java-cup-11b.jar" basedir="${classes}">
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Main-Class" value="java_cup/Main" />
|
||||||
|
- <attribute name="Class-Path" value="java-cup-11b-runtime.jar" />
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
<jar jarfile="${dist}/java-cup-11b-runtime.jar" basedir="${classes}" includes="java_cup/runtime/*">
|
||||||
|
@@ -143,4 +130,10 @@
|
||||||
|
<echo message=" versionbump to inc release" />
|
||||||
</target>
|
</target>
|
||||||
+
|
|
||||||
+ <target name="javadoc" >
|
+ <target name="javadoc">
|
||||||
+ <mkdir dir="${dist}/javadoc"/>
|
+ <mkdir dir="${dist}/javadoc"/>
|
||||||
+ <javadoc
|
+ <javadoc destdir="${dist}/javadoc" author="true" version="true" use="true" windowtitle="java_cup API">
|
||||||
+ destdir="${dist}/javadoc"
|
+ <fileset dir="src" defaultexcludes="yes" />
|
||||||
+ author="true"
|
|
||||||
+ version="true"
|
|
||||||
+ use="true"
|
|
||||||
+ windowtitle="java_cup API">
|
|
||||||
+
|
|
||||||
+ <fileset dir="src" defaultexcludes="yes">
|
|
||||||
+ </fileset>
|
|
||||||
+ </javadoc>
|
+ </javadoc>
|
||||||
+
|
|
||||||
+ </target>
|
+ </target>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,74 +0,0 @@
|
|||||||
# This patch splits the main do_action() method in order to solve the JVM memory limitation problem
|
|
||||||
#
|
|
||||||
--- java_cup_v10k.old/java_cup/emit.java 1999-07-24 15:51:33.000000000 +0300
|
|
||||||
+++ java_cup_v10k/java_cup/emit.java 2009-01-21 11:12:13.000000000 +0200
|
|
||||||
@@ -340,7 +340,7 @@
|
|
||||||
out.println(" this.parser = parser;");
|
|
||||||
out.println(" }");
|
|
||||||
|
|
||||||
- /* action method head */
|
|
||||||
+ /* main action method head */
|
|
||||||
out.println();
|
|
||||||
out.println(" /** Method with the actual generated action code. */");
|
|
||||||
out.println(" public final java_cup.runtime.Symbol " +
|
|
||||||
@@ -352,6 +352,38 @@
|
|
||||||
out.println(" throws java.lang.Exception");
|
|
||||||
out.println(" {");
|
|
||||||
|
|
||||||
+ /* split action code into several methods because of the JVM limitation of method size to 64KB */
|
|
||||||
+ final int splitBase = 100;
|
|
||||||
+ for (int splitIdx = 0; splitIdx < production.number(); splitIdx += splitBase) {
|
|
||||||
+ if (splitIdx > 0) {
|
|
||||||
+ out.print(" else ");
|
|
||||||
+ }
|
|
||||||
+ if (splitIdx + splitBase < production.number()) {
|
|
||||||
+ out.println(" if (" + pre("act_num") + " < " + (splitIdx + splitBase) + ") {");
|
|
||||||
+ } else {
|
|
||||||
+ out.println(" {");
|
|
||||||
+ }
|
|
||||||
+ out.println(" return " + pre("do_action") + ((splitIdx + splitBase) / splitBase) + "(");
|
|
||||||
+ out.println(" " + pre("act_num, ") + pre("parser,") + pre("stack,") + pre("top") + ");");
|
|
||||||
+ out.println(" }");
|
|
||||||
+ }
|
|
||||||
+ out.println(" }");
|
|
||||||
+ out.println();
|
|
||||||
+
|
|
||||||
+ for (int splitIdx = 0; splitIdx < production.number(); splitIdx += splitBase) {
|
|
||||||
+
|
|
||||||
+ /* splitted action method head */
|
|
||||||
+ out.println();
|
|
||||||
+ out.println(" /** Method with the actual generated action code. */");
|
|
||||||
+ out.println(" public final java_cup.runtime.Symbol " +
|
|
||||||
+ pre("do_action") + ((splitIdx + splitBase)/splitBase) + "(");
|
|
||||||
+ out.println(" int " + pre("act_num,"));
|
|
||||||
+ out.println(" java_cup.runtime.lr_parser " + pre("parser,"));
|
|
||||||
+ out.println(" java.util.Stack " + pre("stack,"));
|
|
||||||
+ out.println(" int " + pre("top)"));
|
|
||||||
+ out.println(" throws java.lang.Exception");
|
|
||||||
+ out.println(" {");
|
|
||||||
+
|
|
||||||
/* declaration of result symbol */
|
|
||||||
/* New declaration!! now return Symbol
|
|
||||||
6/13/96 frankf */
|
|
||||||
@@ -365,9 +397,9 @@
|
|
||||||
out.println(" {");
|
|
||||||
|
|
||||||
/* emit action code for each production as a separate case */
|
|
||||||
- for (Enumeration p = production.all(); p.hasMoreElements(); )
|
|
||||||
- {
|
|
||||||
- prod = (production)p.nextElement();
|
|
||||||
+
|
|
||||||
+ for (int prodIdx = splitIdx; prodIdx < production.number() && prodIdx < splitIdx + splitBase; ++prodIdx) {
|
|
||||||
+ prod = (production)production.find(prodIdx);
|
|
||||||
|
|
||||||
/* case label */
|
|
||||||
out.println(" /*. . . . . . . . . . . . . . . . . . . .*/");
|
|
||||||
@@ -471,6 +503,8 @@
|
|
||||||
/* end of method */
|
|
||||||
out.println(" }");
|
|
||||||
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
/* end of class */
|
|
||||||
out.println("}");
|
|
||||||
out.println();
|
|
Loading…
Reference in new issue