renaming and refactoring
authorRed Daly <reddaly@gmail.com>
Fri, 20 Jul 2007 00:34:31 +0000 (00:34 +0000)
committerRed Daly <reddaly@gmail.com>
Fri, 20 Jul 2007 00:34:31 +0000 (00:34 +0000)
commit9da682ca74e58c7a40c0a5db0399b10ad6eb29ac
tree0d8e2206246bbc0fb71def1864dcbbd62fd6d467
parent9090e43cae5ce790bf54729a7fcb43fe8ed93a2b
renaming and refactoring

Changed the names of many functions and macros to get rid of the
symbols with "js" in them--its not Javascript, it's Parenscript!  Most
of those symbols were renamed with "script" replacing "js".

Also changed the main compilation interfaces to use the function
COMPILE-SCRIPT and the macro SCRIPT from JS-COMPILE and JS
respectively.

Additionally, the first steps of the package system are included (with
the addition of a the SCRIPT-PACKAGE and COMPILATION-ENVIRONMENT
classes).  These are integrated into the current compiler, though they
probably break a few "traditional" serialization methods, specifically
because macro and special form names are stored as symbols rather than
strings and EQL comparisons are used rather than STRING-EQUAL
comparisons of the strings.

I have also split parser.lisp into parser.lisp and macrology.lisp.
Parser.lisp contains mechanisms for parsing Parenscript given an input
s-expression while macrology.lisp contains language definitions that
make use of the parsing mechanisms.

All tests now pass, though the documentation has gone slightly out of
date with the symbol renaming.  This will be fixed shortly.  More
tests and functionality need to be added to make the current
Parenscript compatable with the older semantics (as dicussed,
comparing macro/special form names based on their string values is the
main thing).
19 files changed:
parenscript.asd
src/compilation-interface.lisp [new file with mode: 0644]
src/compile-js.lisp [deleted file]
src/defgenerics.lisp [deleted file]
src/deprecated-interface.lisp [new file with mode: 0644]
src/js-translation.lisp
src/lib/css.lisp [moved from src/css.lisp with 97% similarity]
src/lib/functional.lisp
src/lib/js-html.lisp [moved from src/js-html.lisp with 94% similarity]
src/lib/js-utils.lisp [moved from src/js-utils.lisp with 87% similarity]
src/macrology.lisp [new file with mode: 0644]
src/package.lisp
src/parse-lambda-list.lisp [new file with mode: 0644]
src/parser.lisp
src/reader.lisp [new file with mode: 0644]
src/source-model.lisp
t/ps-tests.lisp
t/test-package.lisp
t/test.lisp