A DSSSL syntax checker Code
Brought to you by:
jbostock
DSSSL Syntax Checker version 2.0 Henry S. Thompson 20 July 1999 (Copyright Henry S. Thompson 1999, not for onward distribution) Produced at HCRC Language Technology Group, Edinburgh with support from the UK Economic and Social Research Council and SunSoft This package provides an offline syntax checker for DSSSL style and transform specifications. It maps from specification bodies (i.e. sequences of expression language forms) to a reordered normalised form thereof, suitable for subsequent implementation. It provides an interpreted environment for exploring DSSSL code. It provides a proof-of-concept implementation of the DSSSL transformation language. This is accomplished by an embedding of the Gambit Scheme-to-C compiler within James Clark's JADE. Please see the COPYRIGHT, sp-1.3/COPYING and gambc27/COPYRIGHT files for further information. INSTALLATION *********WARNING************ This release has been hanging fire for almost two years, and has been forced out the door in a hurry. It built once from scratch on Solaris 2.5 with gcc-egcs-2.91.66, no promises in any other context. Unpack the tar file. Make a build directory and go there Run configure from the source directory with switches at least as follows: > CXX=g++-egcs-2.91.66 CC=gcc-egcs-2.91.66 [sourcedir]/configure --enable-http --enable-static --disable-shared Run > gmake LTVERSION=1:3 After a LONG time, you should get src/dsc TESTING To test the basic syntax checking and interpreter, go to the data directory and > dsc -c catalog test.dsl -+ test.sgm dsc> (dotest) () dsc> (current-node) #nl1:138328:TESTDOC dsc> (children (current-node)) #nl1:143E57:TESTDOC^ dsc> (node-list (children (current-node))) #nl2:144017 dsc> (node-list-first !) #nl1:144316:DIV1 and you're on your way. Note that most access functions are implemented lazily, indicated by the '^' in the results of the 'children' function. To test the transformation language, do > dsc -c catalog idtrans.dsl -+ triv.sgm dsc> (go) or for a more serious test > dsc -s reverse -c catalog idtrans.dsl -+ triv.sgm dsc> (go) Queries to ht@cogsci.ed.ac.uk