debian/0000755000000000000000000000000012261522673007174 5ustar debian/styx.links0000644000000000000000000000050611532751317011245 0ustar usr/share/man/man1/styx.1 usr/share/man/man1/stypp.1 usr/share/man/man1/styx.1 usr/share/man/man1/stydoc.1 usr/share/man/man1/styx.1 usr/share/man/man1/ctoh.1 usr/share/man/man1/styx.1 usr/share/man/man1/lim_test.1 usr/share/man/man1/styx.1 usr/share/man/man1/pim_test.1 usr/share/man/man1/styx.1 usr/share/man/man1/ptm_img.1 debian/libstyx2.install0000644000000000000000000000004511532751317012342 0ustar debian/tmp/usr/lib/lib[dx]styx*.so.* debian/libstyx2.lintian0000644000000000000000000000010711532753276012337 0ustar libstyx2 binary: package-name-doesnt-match-sonames libdstyx2 libxstyx2 debian/copyright0000644000000000000000000000172411532751317011132 0ustar This package was debianized by Siggy Brentrup on Tue, 3 Dec 2002 21:59:34 +0100. It was downloaded from http://speculate.de/styx/styx-1.6.1.tar.gz Upstream authors: Heike Manns Lars Doelle Copyright 2002-2009 Heike Manns Copyright 2002-2009 Lars Doelle Styx comes with two licenses, GPL and LGPL. Overall, the GPL v2 applies to the whole project. To enable the use of the basic runtime library for commercial purposes, libdstyx.so fall under LGPL. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'; the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL'. More explicitly, the sources of both the parser and the scanner generators ( in the source directory 'libstyx' ) fall under GPL and are not released under LGPL. debian/styx-doc.doc-base0000644000000000000000000000075511532751317012353 0ustar Document: styx-handbook Title: The Styx Handbook Author: Heike Manns, Lars Doelle Abstract: This manual describes application development with the combined parser/scanner generator styx and includes reference documentation for programs and the styx API. Section: Apps/Programming Format: HTML Index: /usr/share/doc/styx-doc/html/styx.html Files: /usr/share/doc/styx-doc/html/*.html /usr/share/doc/styx-doc/html/*.htm Format: linuxdoc-sgml Files: /usr/share/doc/styx-doc/sgml/styx.sgml.gz debian/.pc/0000755000000000000000000000000012257612045007652 5ustar debian/.pc/.quilt_patches0000644000000000000000000000001012257612045012507 0ustar patches debian/.pc/.quilt_series0000644000000000000000000000000712257612045012360 0ustar series debian/.pc/.version0000644000000000000000000000000212257612045011330 0ustar 2 debian/source/0000755000000000000000000000000011532761301010465 5ustar debian/source/format0000644000000000000000000000001411532761301011673 0ustar 3.0 (quilt) debian/README0000644000000000000000000000150111532751317010050 0ustar styx for Debian --------------- As mentioned in "The Styx Handbook", upstream authors use a programming style where .h files are automatically generated from the corresponding .c sources. Styx generated C code adheres to the same conventions, hence ctoh has to be run after styx. In order to avoid conflicts, header files coming with styx are installed under /usr/include/styx. For generated sources to compile, with gcc, you must specify "-I /usr/include/styx". Upstream decided to only release threading versions of the libraries. This means that when linking statically, you have to append "-ldl -lrt -lpthread" to your linker command line (cf. comment in /usr/share/doc/styx-doc/examples/example*/mx). When linking dynamically this happens under the hood. -- Siggy Brentrup , Tue, 10 Jun 2003 08:17:19 +0200 debian/styx.sgml0000644000000000000000000002701211532751317011070 0ustar Siggy"> Brentrup"> May 20, 2003"> 1"> bsb@debian.org"> STYX"> Debian GNU/Linux"> GNU"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2002 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; A combined parser and scanner generator styx directory directory directory language stypp string string string string string string string string path srclang tgtlang filename stydoc path path string string string string string path grammarfile outfile ctoh path path path path path ptm_img path string string string string string string string string path language image lim_test string string string string path language filename pim_test string string string string string string string path language filename DESCRIPTION This manual page documents briefly the styx, stypp, stydoc, ctoh, lim_test and pim_test commands. It was written for the &debian; distribution because the original programs don't have manual pages, but have documentation in HTML format (see below). styx translates token and syntax descriptions contained in $SPESTYX/language.sty yielding scanner and parser tables as well as a functional interface to the abstract derivation tree. stypp is sort of a pretty printer for source files written in a styx-defined language. Furthermore it can be used to port source files, provided source and target languages have equivalent abstract syntax. stydoc generates HTML reference documentation for a grammar specified in grammarfile using a template. ctoh is used to create header files from C sources generated by styx. It is taken from the upstream author's own project development environment where source files are written in a manner allowing interface definitions to be automatically generated. ptm_img translates a source file specified by the FileName option to a binary image. If the FileName option is omitted, the image file must exist and the program writes the derivation tree to stdout. lim_test uses a scanner image file for language to scan the source in filename writing the token stream to stdout. pim_test uses scanner and parser image files for language to parse the source in filename writing the derivation tree to stdout. ENVIRONMENT Upstream authors use non-standard conventions for command-line options and environment variables, to the effect that the latter are best viewed as options which default to the value of the identically named environment variable if not specified. For styx, SPESTYX is the search path for language specifications (language.sty), scanner and parser image files are located using BINSTYX while the location of generated C code is determined by GENSTYX. stypp, stydoc, ptm_img, lim_test and pim_test use BINSTYX to locate scanner and parser image files language.lim and language.pim. SEE ALSO The programs are documented fully in The Styx Handbook available in the source distribution in LinuxDoc and HTML format. On &debian; systems the documentation is contained in the styx-doc package. AUTHOR This manual page was written by &dhusername; <&dhemail;> for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.
debian/compat0000644000000000000000000000000211532751317010371 0ustar 7 debian/TODO0000644000000000000000000000020311532751317007656 0ustar * Meaningful long descriptions for all binary packages except styx. * Development manpages. * Fix abstract in styx-doc.doc-base. debian/styx-dev.install0000644000000000000000000000015011532751317012342 0ustar debian/tmp/usr/lib/lib[dx]styx*.so debian/tmp/usr/lib/lib[dx]styx*.la debian/tmp/usr/lib/lib[dx]styx*.a debian/styx-xml.README0000644000000000000000000000147111532751317011662 0ustar styx-xml for Debian ------------------- While upstream installs a shared library libdxml.so providing XML support based on styx's own tree traversal functions, we use the XML/DTD parser to give a full blown example for application development with styx. In order to build the example application, install prerequisite packages using apt-get install styx libcurl3-gnutls-dev automatically drawing in dependent packages libdstyx, libxstyx and libcurl3-gnutls if they are not yet installed. # Unpack the example in your working directory tar xzf /usr/share/doc/styx-doc/examples/styx-xml.tar.gz cd styx-xml # As with other styx examples, the mx script builds the application sh mx -- Bernd S. Brentrup , Sat Jan 10 18:20:00 2004 -- Matej Vela , Wed Oct 19 18:50:02 CEST 2005 debian/styx.install0000644000000000000000000000026611532751317011576 0ustar debian/tmp/usr/bin/styx debian/tmp/usr/bin/stydoc debian/tmp/usr/bin/stypp debian/tmp/usr/bin/ctoh debian/tmp/usr/bin/lim_test debian/tmp/usr/bin/pim_test debian/tmp/usr/bin/ptm_img debian/rules0000755000000000000000000000362611677351175010272 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk DEB_CONFIGURE_INCLUDEDIR := /usr/include/styx DEB_CONFIGURE_EXTRA_FLAGS := --datadir=/usr/share/doc/styx-doc \ ac_cv_htmldir=/usr/share/doc/styx-doc/html \ ac_cv_sgmldir=/usr/share/doc/styx-doc/sgml build/styx:: debian/styx.1 debian/styx.1: debian/styx.sgml docbook-to-man $< > $@ clean:: rm -f debian/styx.1 build/styx-doc:: debian/styx-xml.tar.gz debian/styx-xml.tar.gz: set -e; \ for args in "pgmxml/*.c debian/styx-xml" \ "spexml/*.sty spexml/*.lex debian/styx-xml/spe" \ "genxml/xml_test_cim.c debian/styx-xml/gen" \ "libxml/*.[ch] debian/styx-xml/lib"; do \ install -d $${args##*[[:space:]]}; \ install -m 644 -p $$args; \ done install -m 755 debian/styx-xml.mx debian/styx-xml/mx GZIP=-9 tar -czf $@ --owner=root --group=root -C debian styx-xml clean:: rm -rf debian/styx-xml debian/styx-xml.tar.gz # Disable default target since we want to do install-{exec,data} separately. DEB_MAKE_INSTALL_TARGET := common-install-arch:: $(MAKE) install-exec DESTDIR=$(DEB_DESTDIR) mkdir -p debian/libstyx2/usr/share/lintian/overrides/ install -o root -g root -m 0644 debian/libstyx2.lintian \ debian/libstyx2/usr/share/lintian/overrides/libstyx2 install/styx-dev:: set -e; \ for dir in libbase modstd pgm inc; do \ $(MAKE) -C $$dir install-data DESTDIR=$(CURDIR)/debian/styx-dev; \ done install/styx-doc:: debian/styx-xml.tar.gz set -e; \ for dir in doc examples spe pat; do \ $(MAKE) -C $$dir install-data DESTDIR=$(CURDIR)/debian/styx-doc; \ done find debian/styx-doc -size 0 | xargs rm -f # empty dependency_libs in .la files binary-install/styx-dev:: sed -i "/dependency_libs/ s/'.*'/''/" $(CURDIR)/debian/styx-dev/usr/lib/*.la DEB_DH_MAKESHLIBS_ARGS_ALL := -V DEB_SHLIBDEPS_INCLUDE := debian/libstyx2/usr/lib debian/styx.manpages0000644000000000000000000000001611532751317011714 0ustar debian/styx.1 debian/patches/0000755000000000000000000000000012257612321010616 5ustar debian/patches/series0000644000000000000000000000000112257612321012022 0ustar debian/control0000644000000000000000000000447411677347221010614 0ustar Source: styx Section: devel Priority: optional Maintainer: Frederik Schüler Build-Depends: cdbs, autotools-dev, debhelper (>= 7), docbook-to-man, gawk Standards-Version: 3.9.1 Homepage: http://speculate.de/styx/ Package: styx Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: styx-dev (= ${binary:Version}) Suggests: styx-doc (= ${source:Version}) Description: combined parser/scanner generator for C/C++ The package facilitates application development including user-defined context free languages. . Its development model deviates from the traditional lex/yacc pair (flex/bison in Debian) by automating tedious tasks which are commonly implemented in yacc's actions. . Styx automatically derives a depth grammar, generates reentrant parsers that support persistent derivation trees, preserve full source information, support Unicode and are thread safe. Tag: devel::{code-generator,lang:c,lang:c++,lang:php,lang:c#}, implemented-in::c, interface::commandline, role::program, scope::utility, suite::gnu, works-with::software:source Package: libstyx2 Architecture: any Section: libs Depends: ${shlibs:Depends}, ${misc:Depends} Provides: libdstyx, libxstyx Conflicts: libdstyx, libxstyx Replaces: libdstyx, libxstyx Description: runtime libraries for styx Dynamically linked programs containing lexical scanners or parsers developed with styx depend on this library. . It implements abstract grammar, LALR(1) parser and lexical scanner interfaces, hashed symbol tables and supporting data types. Tag: role::shared-lib, suite::gnu Package: styx-dev Architecture: any Depends: styx (= ${binary:Version}), ${misc:Depends} Suggests: styx-doc (= ${source:Version}) Description: combined parser/scanner generator development files Static libraries and headers needed for development with styx. . cf. styx for features. Tag: devel::library, role::devel-lib, suite::gnu Package: styx-doc Architecture: all Section: doc Depends: ${misc:Depends} Description: combined parser/scanner generator documentation "The Styx Handbook" describes application development with styx and contains HTML reference documentation for the styx API. . Contains a full blown example showing how to build an XML parser with styx. . cf. styx for features. Tag: devel::doc, devel::examples, made-of::html, role::documentation debian/styx-doc.examples0000644000000000000000000000005611532751317012506 0ustar debian/styx-xml.README debian/styx-xml.tar.gz debian/watch0000644000000000000000000000025011532751317010221 0ustar # watch control file for uscan # Site Directory Pattern Version Script version=2 http://www.speculate.de/styx/en/download.html .*/styx-(.*)\.tar\.gz debian uupdate debian/styx-xml.mx0000644000000000000000000000066011532751317011350 0ustar #!/bin/sh set -e SPESTYX=$PWD/spe BINSTYX=$PWD/gen GENSTYX=$PWD/gen export SPESTYX BINSTYX GENSTYX [ -d inc ] || mkdir inc for lang in xmllit dtd xml ; do styx -makeINT -makeC ${lang} done ctoh -ct -CPATH=.:lib:gen -HPATH=inc gcc -I ./inc -I ./lib -I /usr/include/styx -c *.c for d in gen lib ; do ( cd ${d} && gcc -I ../inc -I ../lib -I /usr/include/styx -c *.c ) done gcc -o xml_test *.o gen/*.o lib/*.o -lxstyx -lcurl debian/changelog0000644000000000000000000001075112261522667011055 0ustar styx (2.0.1-1) unstable; urgency=medium * New upstream release -- Frederik Schüler Sat, 28 Dec 2013 18:20:37 +0100 styx (1.8.0-1.1) unstable; urgency=low * Non-maintainer upload. * Fix "FTBFS: ./config.status: 1358: ./config.status: gawk: not found": add build dependency on gawk (closes: #642738). * debian/rules: empty dependency_libs in .la files (closes: #633188). -- gregor herrmann Fri, 30 Dec 2011 16:02:26 +0100 styx (1.8.0-1) unstable; urgency=low * New upstream version. * Bump standards version. * Fix Makefile.am, patch sent upstream. Closes: #615778 -- Frederik Schüler Tue, 08 Mar 2011 14:09:11 +0100 styx (1.7.6-1) unstable; urgency=low * New upstream version. - Fixes build failure with new eglibc. Closes: #552841 * Bump debhelper to compat level 7. * Adeded Debtags. * Conforms to standards version 3.8.3. -- Frederik Schüler Thu, 19 Nov 2009 16:55:59 +0100 styx (1.7.5-1) unstable; urgency=low * New upstream version. -- Frederik Schüler Fri, 22 Jun 2007 23:56:17 +0200 styx (1.7-1) unstable; urgency=low * New Maintainer. Closes: #298369 * New upstream version. * Added lintian override for libstyx2. -- Frederik Schüler Sat, 19 Nov 2005 22:26:05 +0100 styx (1.6.1-3) unstable; urgency=low * QA upload. * Rebuild as a non-native package. * libdstyx and libxstyx lack a soname in their name, have no external reverse dependencies, and total ~230 KB, so merge them into libstyx2. * Put the styx-xml example in a tarball; a normal user can't compile it in /usr/share/doc anyway, and this makes the instructions simpler. * Add a list of supported languages to the description. Closes: #302768. * Switch to cdbs to simplify package-specific rules. * Use `dh_makeshlibs -V' rather than a static shlibs.local. * Remove unnecessary build dependencies on automake1.4 and autoconf. * Remove {pre,post}{inst,rm} templates. * debian/libdstyx.copyright: Merge into debian/copyright. * debian/styx-doc.doc-base: Change section to Apps/Programming. * debian/watch: Update. * Conforms to Standards version 3.6.2. -- Matej Vela Wed, 19 Oct 2005 18:54:03 +0200 styx (1.6.1-2) unstable; urgency=low * QA Group upload orphaning this package * debian/control: fixed typo in package description (closes: #268545, #277246) -- Andrew Pollock Thu, 24 Mar 2005 13:02:32 +1100 styx (1.6.1-1) unstable; urgency=low * New upstream release. * Folded styx-xml into styx-doc where other examples reside. * Bumped Standards version to 3.6.1. -- Siggy Brentrup Sat, 10 Jan 2004 20:56:21 +0100 styx (1.6-0) unstable; urgency=low * Sorry, this release never made it into the archives. * New upstream version. * New example package styx-xml. * debian/styx.sgml: Fixed synopsis for lim_test, plus minor tweaks in wording. * Change maintainer email address. -- Siggy Brentrup Sat, 10 Jan 2004 18:03:19 +0100 styx (1.5.1-3) unstable; urgency=low * Revamp va_list usage portably, patch forwarded upstream. Package should build on any arch now (Closes: #174393). -- Siggy Brentrup Sun, 29 Dec 2002 02:22:42 +0100 styx (1.5.1-2) unstable; urgency=low * libbase/sink.c(Sink_vprintf): Fixed va_arg calls to use self-promoting type int instead of char/short (Closes: #174255). -- Siggy Brentrup Thu, 26 Dec 2002 18:28:47 +0100 styx (1.5.1-1) unstable; urgency=low * First upload (Closes: #172037). * debian/control: capitalize "Unicode" per request by Martin Michlmayer. * pgm/styx.{c,cmd}, gen/styx_cim.c: upstream added -makeANT flag to the effect that win-only files _ant.c are no longer generated when -makeINT is specified. These files didn't compile on Linux. * tutorial/tutorial0[1-4]/mx.in: added comments how to make static linking work and rewrote gcc commands accordingly. * tutorial/tutorial0[1-4]/readme: removed note on setting $STYXDIR and $LD_LIBRARY_PATH that don't apply to Debian. -- Siggy Brentrup Thu, 12 Dec 2002 20:34:19 +0100 styx (1.5.1-0) experimental; urgency=low * Initial Release. * Added manpage since upstream uses HTML documentation. * libbase/symbols.c: bugfix by Heike Manns (upstream). * tutorial/tutorial04/calc.cpp: bugfix by Heike Manns (upstream). -- Siggy Brentrup Fri, 6 Dec 2002 11:26:52 +0100