debian/0000755000000000000000000000000011722322340007162 5ustar debian/jtb.links0000644000000000000000000000004311722322340011000 0ustar usr/share/java/jtb.jar usr/bin/jtb debian/jtb.lintian-overrides0000644000000000000000000000033711722322340013324 0ustar # using javawrapper, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539315 jtb binary: executable-not-elf-or-script # JavaCC = Java Compiler Compiler jtb binary: description-contains-duplicated-word Compiler Compiler debian/copyright0000644000000000000000000001561611722322340011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: JTB Upstream-Contact: Marc Mazas Source: http://eclipse-javacc.sourceforge.net/jtb_doc.html Files: * Copyright: 2004-2005, UCLA Compilers Group 1997-1999, Purdue Research Foundation of Purdue University License: BSD-3-clause and other Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . Neither UCLA nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . . Redistribution and use in source and binary forms are permitted provided that this entire copyright notice is duplicated in all such copies, and that any documentation, announcements, and other materials related to such distribution and use acknowledge that the software was developed at Purdue University, West Lafayette, Indiana by Kevin Tao and Jens Palsberg. No charge may be made for copies, derivations, or distributions of this material without the express written consent of the copyright holder. Neither the name of the University nor the name of the author may be used to endorse or promote products derived from this material without specific prior written permission. . THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ANY PARTICULAR PURPOSE. Files: EDU/purdue/jtb/parser/* Copyright: 2006, Sun Microsystems, Inc. License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Sun Microsystems, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: EDU/purdue/jtb/utils/JavaFileGenerator.java Copyright: 2008, Paul Cager License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2010, Ludovico Cavedon 2010, David Paleino License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/jtb.10000644000000000000000000000572311722322340010032 0ustar .TH JTB 1 "Jun 2010" .SH NAME jtb \- syntax tree builder for JavaCC .SH SYNOPSIS .B jtb .RI [ options ] " inputfile" .SH DESCRIPTION This manual page documents briefly the \fBjtb\fR command. .PP JTB (Java Tree Builder) is a syntax tree builder and visitors generator to be used in front of JavaCC (Java Compiler Compiler). It takes a JavaCC grammar file as input (usually a ".jtb" file) and automatically generates the following: .RS .PP \- a set of syntax tree classes based on the productions in the grammar, utilizing the Visitor design pattern; .PP \- four interfaces: IVoidVisitor, IVoidArguVisitor, IRetVisitor, IRetArguVisitor; .PP \- four depth-first visitors: DepthFirstVoidVisitor, DepthFirstVoidArguVisitor, DepthFirstRetVisitor, DepthFirstREtArguVisitor, whose default methods simply visit the children of the current node; a JavaCC grammar ".jj" file (jtb.out.jj by default), with the proper annotations to build the syntax tree during parsing (which then must be compiled with JavaCC). .RE .PP New visitors, which subclass any generated one, can then override the default methods and perform various operations on and manipulate the generated syntax tree. .SH OPTIONS .TP \fB\-cl\fR Print a list of the classes generated to standard out. .TP \fB\-d \fIdir\fR "\fB\-d \fIdir\fR" is short for (and overwrites) "\fB\-nd \fIdir\fR/syntaxtree \fB\-vd \fIdir\fR/visitor". .TP \fB\-dl\fR Generate depth level info. .TP \fB\-e\fR Suppress JTB semantic error checking. .TP \fB\-f\fR Use descriptive node class field names. .TP \fB\-h\fR Display this help message and quit. .TP \fB\-ia\fR Inline visitors accept methods on base classes. .TP \fB\-jd\fR Generate JavaDoc\-friendly comments in the nodes and visitor. .TP \fB\-nd \fINAME\fR Use \fINAME\fR as the package for the syntax tree nodes. .TP \fB\-np \fINAME\fR Use \fINAME\fR as the package for the syntax tree nodes. .TP \fB\-ns \fINAME\fR Use \fINAME\fR as the class which all node classes will extend. .TP \fB\-o \fINAME\fR Use \fINAME\fR as the filename for the annotated output grammar. .TP \fB\-p \fINAME\fR "\fB\-p \fIpkg\fR" is short for (and overwrites) "\fB\-np \fIpkg\fR.syntaxtree \fB\-vp \fIpkg\fR.visitor". .TP \fB\-pp\fR Generate parent pointers in all node classes. .TP \fB\-printer\fR Generate a syntax tree dumping visitor. .TP \fB\-si\fR Read from standard input rather than a file. .TP \fB\-scheme\fR Generate Scheme records representing the grammar and a Scheme tree building visitor. .TP \fB\-tk\fR Generate special tokens into the tree. .TP \fB\-vd \fINAME\fR Use \fINAME\fR as the package for the default visitor classes. .TP \fB\-vp \fINAME\fR Use \fINAME\fR as the package for the default visitor classes. .TP \fB\-w\fR Do not overwrite existing files. .SH SEE ALSO .BR javacc (1) .SH AUTHOR \fBjtb\fR was written by the UCLA Compilers Group. .PP This manual page was written by David Paleino , for the Debian project (and may be used by others). .PP This manual page was updated by Ludovico Cavedon . debian/control0000644000000000000000000000306211722322340010566 0ustar Source: jtb Section: devel Priority: optional Maintainer: Ludovico Cavedon Build-Depends: debhelper (>= 7.0.50~), javahelper (>= 0.31) Build-Depends-Indep: default-jdk, maven-repo-helper Uploaders: David Paleino Standards-Version: 3.9.3 Homepage: http://eclipse-javacc.sourceforge.net/jtb_doc.html Vcs-Git: git://git.debian.org/git/collab-maint/jtb.git Vcs-Browser: http://git.debian.org/?p=collab-maint/jtb.git Package: jtb Architecture: all Depends: ${java:Depends}, ${misc:Depends} Description: syntax tree builder and visitors generator for JavaCC JTB (Java Tree Builder) is a syntax tree builder and visitors generator to be used in front of JavaCC (Java Compiler Compiler). It takes a JavaCC grammar file as input (usually a ".jtb" file) and automatically generates the following: * a set of syntax tree classes based on the productions in the grammar, utilizing the Visitor design pattern; * four interfaces: IVoidVisitor, IVoidArguVisitor, IRetVisitor, IRetArguVisitor; * four depth-first visitors: DepthFirstVoidVisitor, DepthFirstVoidArguVisitor, DepthFirstRetVisitor, DepthFirstREtArguVisitor, whose default methods simply visit the children of the current node; * a JavaCC grammar ".jj" file (jtb.out.jj by default), with the proper annotations to build the syntax tree during parsing (which then must be compiled with JavaCC). . New visitors, which subclass any generated one, can then override the default methods and perform various operations on and manipulate the generated syntax tree. debian/jtb.manifest0000644000000000000000000000014511722322340011471 0ustar usr/share/java/jtb.jar: Main-Class: EDU.purdue.jtb.JTB Debian-Java-Home: /usr/lib/jvm/default-java debian/source/0000755000000000000000000000000011722322340010462 5ustar debian/source/format0000644000000000000000000000001411722322340011670 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000006511722322340010214 0ustar version=3 http://sf.net/eclipse-javacc/jtb-(.+)\.jar debian/jtb.poms0000644000000000000000000000001711722322340010637 0ustar debian/pom.xml debian/jtb.manpages0000644000000000000000000000001511722322340011452 0ustar debian/jtb.1 debian/compat0000644000000000000000000000000211722322340010360 0ustar 7 debian/jtb.docs0000644000000000000000000000001511722322340010607 0ustar jtb_doc.html debian/changelog0000644000000000000000000000201711722322340011034 0ustar jtb (1.4.4-2) unstable; urgency=low * Merge fix FTBFS with OpenJDK7 from Ubuntu (Closes: #651525, LP: #888955): - d/rules: Call jh_build with source/target 1.5 to ensure backwards compatibility and work around Java 7 encoding errors. * Update Standards-Version to 3.9.3. * Update debian/copyright to machine-readable version 1.0. -- Ludovico Cavedon Sat, 25 Feb 2012 19:04:24 -0800 jtb (1.4.4-1) unstable; urgency=low * New upstream release. * Update Standards-Version to 3.9.0. * Remove referece to deprecated BSD license file from copyright file. -- Ludovico Cavedon Sun, 18 Jul 2010 19:59:16 +0200 jtb (1.4.3.2-2) unstable; urgency=low * Move debhelper and javahelper to Build-Depends, as they are used by the clean target. -- Ludovico Cavedon Sun, 27 Jun 2010 17:40:24 -0700 jtb (1.4.3.2-1) unstable; urgency=low * Initial release. (Closes: #410283) -- Ludovico Cavedon Thu, 17 Jun 2010 01:10:38 -0700 debian/rules0000755000000000000000000000161411722322340010244 0ustar #!/usr/bin/make -f export JAVA_HOME=/usr/lib/jvm/default-java DEBVERSION:=$(shell head -n 1 debian/changelog | sed -e 's/^[^(]*(\([^)]*\)).*/\1/') SRCVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[.0-9]*$$//') %: dh --with javahelper $@ override_jh_build: jh_build --javacopts="-source 1.5 -target 1.5" --javadoc-opts="-source 1.5" override_dh_install: dh_install mh_installpoms -pjtb mh_installjar -pjtb -l debian/pom.xml jtb.jar override_dh_installchangelogs: dh_installchangelogs Releases_Notes.txt get-orig-source: uscan --download-current-version --force-download rm -fr get-orig-source mkdir -p get-orig-source/jtb-$(SRCVERSION) cd get-orig-source/jtb-$(SRCVERSION) && \ jar xf ../../../jtb-$(SRCVERSION).jar && \ find -name *.class -exec rm {} \; cd get-orig-source && tar zcf ../../jtb_$(SRCVERSION).orig.tar.gz jtb-$(SRCVERSION) rm -fr get-orig-source debian/javabuild0000644000000000000000000000001411722322340011041 0ustar jtb.jar EDU debian/pom.xml0000644000000000000000000000126011722322340010476 0ustar 4.0.0 edu.ucla.cs.compilers jtb jar 1.4.3.2 Java Tree Builder http://eclipse-javacc.sourceforge.net/jtb_doc.html JTB is a syntax tree builder to be used with the Java Compiler Compiler (JavaCC) parser generator. none