Common Lisp Package: PARENSCRIPT.FILES

Library that compiles Parenscript files and systems.

README:

FUNCTION

Public

COMPILE-SCRIPT-FILE (SOURCE-FILE &KEY (OUTPUT-SPEC JAVASCRIPT) COMP-ENV (PRETTY-PRINT T) (OUTPUT-STREAM *STANDARD-OUTPUT*))

Compiles the given Parenscript source file and outputs the results to the given output stream.

COMPILE-SCRIPT-FILE-TO-JS-FILE (SOURCE-FILE &REST ARGS &KEY DESTINATION-FILE &ALLOW-OTHER-KEYS)

Compile SOURCE-FILE (a parenscript file) to a javascript file with compile-parenscript-file-to-string. When DESTINATION-FILE is omitted, then it will be named the same as SOURCE-FILE but with js extension.

COMPILE-SCRIPT-FILE-TO-STRING (SOURCE-FILE &REST REST)

Compile SOURCE-FILE (a parenscript file) to a javascript string. (in-package ...) forms behave as expected and all other forms are evaluated according to the value of EVAL-FORMS-P. If the result of the evaluation is not nil then it's compiled with js:js* and written to the output.

COMPILE-SCRIPT-SYSTEM (SYSTEM &KEY (PRETTY-PRINT T) (OUTPUT-SPEC JAVASCRIPT) (OUTPUT-TO-STREAM T) (OUTPUT-STREAM *STANDARD-OUTPUT*) OUTPUT-TO-FILES COMP-ENV)

Compiles a collection of parenscripts as described by an ASDF system into files or a specified output stream.

READ-PARENSCRIPT-FORM (&OPTIONAL (STREAM *STANDARD-INPUT*) EOF-ERROR-OP EOF-VALUE RECURSIVEP)

Reads a parenscript form from a stream. Use instead of READ so we can replace the reader with a parenscript reader, if necessary.

MACRO

Private

Undocumented

WITH-PS-COMPILATION-ENVIRONMENT ((ENV) &BODY BODY)

WITH-TOPLEVEL-COMPILATION ((ENV) &BODY BODY)