This is the parenscript-classic Reference Manual, version 0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:14:56 2024 GMT+0.
parenscript-classic/parenscript-classic.asd
parenscript-classic/src/package.lisp
parenscript-classic/src/utils.lisp
parenscript-classic/src/defgenerics.lisp
parenscript-classic/src/js.lisp
parenscript-classic/src/js-html.lisp
parenscript-classic/src/css.lisp
parenscript-classic/src/compile-js.lisp
The main system appears first, followed by any subsystem dependency.
parenscript-classic
js - javascript compiler
Clinton Ebadi <clinton@unknownlamer.org>
Manuel Odendahl <manuel@bl0rg.net>
BSD
0
src
(module).
Modules are listed depth-first from the system components tree.
parenscript-classic/src
parenscript-classic
(system).
package.lisp
(file).
utils.lisp
(file).
defgenerics.lisp
(file).
js.lisp
(file).
js-html.lisp
(file).
css.lisp
(file).
compile-js.lisp
(file).
lib
(module).
parenscript-classic/src/lib
src
(module).
functional.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
parenscript-classic/parenscript-classic.asd
parenscript-classic/src/package.lisp
parenscript-classic/src/utils.lisp
parenscript-classic/src/defgenerics.lisp
parenscript-classic/src/js.lisp
parenscript-classic/src/js-html.lisp
parenscript-classic/src/css.lisp
parenscript-classic/src/compile-js.lisp
parenscript-classic/parenscript-classic.asd
parenscript-classic
(system).
parenscript-classic/src/utils.lisp
package.lisp
(file).
src
(module).
append-to-last
(function).
list-join
(function).
list-to-string
(function).
prepend-to-first
(function).
string-join
(function).
string-split
(function).
val-to-string
(function).
parenscript-classic/src/defgenerics.lisp
package.lisp
(file).
src
(module).
js-to-statement-strings
(generic function).
js-to-strings
(generic function).
expression-precedence
(generic function).
function-start-string
(generic function).
js-equal
(generic function).
parenscript-classic/src/js.lisp
package.lisp
(file).
utils.lisp
(file).
defgenerics.lisp
(file).
src
(module).
cc-if
(class).
defjsmacro
(macro).
gen-js-name
(function).
gen-js-name-string
(function).
import-macros-from-lisp
(function).
initialize-instance
(method).
initialize-instance
(method).
js
(macro).
js*
(macro).
js-compile
(function).
js-file
(macro).
js-inline
(macro).
js-inline*
(macro).
js-script
(macro).
js-to-line
(function).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-statement-strings
(method).
js-to-string
(function).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
js-to-strings
(method).
regex
(class).
with-unique-js-names
(macro).
*gen-js-name-counter*
(special variable).
*js-compiler-macros*
(special variable).
*js-lisp-escaped-chars*
(special variable).
*js-macro-env*
(special variable).
*js-macro-toplevel*
(special variable).
*js-quote-char*
(special variable).
*op-precedence-hash*
(special variable).
*special-chars*
(special variable).
*var-counter*
(special variable).
aref-array
(reader method).
(setf aref-array)
(writer method).
aref-index
(reader method).
(setf aref-index)
(writer method).
array-literal
(class).
array-values
(reader method).
(setf array-values)
(writer method).
assignment-op
(function).
b-indent
(reader method).
(setf b-indent)
(writer method).
b-stmts
(reader method).
(setf b-stmts)
(writer method).
case-clauses
(reader method).
(setf case-clauses)
(writer method).
case-value
(reader method).
(setf case-value)
(writer method).
cc-if-body
(reader method).
(setf cc-if-body)
(writer method).
cc-if-test
(reader method).
(setf cc-if-test)
(writer method).
cond-bodies
(reader method).
(setf cond-bodies)
(writer method).
cond-tests
(reader method).
(setf cond-tests)
(writer method).
constant-string-p
(function).
define-js-compiler-macro
(macro).
define-js-single-op
(macro).
defjsclass
(macro).
defjskeyword
(macro).
defjsliteral
(macro).
defun-name
(reader method).
(setf defun-name)
(writer method).
dwim-join
(function).
expression
(class).
expression-precedence
(method).
expression-precedence
(method).
expression-precedence
(method).
expression-precedence
(method).
expression-precedence
(method).
f-args
(reader method).
(setf f-args)
(writer method).
f-function
(reader method).
(setf f-function)
(writer method).
fe-body
(reader method).
(setf fe-body)
(writer method).
fe-name
(reader method).
(setf fe-name)
(writer method).
fe-value
(reader method).
(setf fe-value)
(writer method).
first-slash-p
(function).
first-uppercase-p
(function).
for-body
(reader method).
(setf for-body)
(writer method).
for-check
(reader method).
(setf for-check)
(writer method).
for-each
(class).
for-steps
(reader method).
(setf for-steps)
(writer method).
for-vars
(reader method).
(setf for-vars)
(writer method).
funcall-form-p
(function).
function-call
(class).
function-start-string
(method).
function-start-string
(method).
if-else
(reader method).
(setf if-else)
(writer method).
if-test
(reader method).
(setf if-test)
(writer method).
if-then
(reader method).
(setf if-then)
(writer method).
js-++
(function).
js--
(function).
js---
(function).
js-aref
(function).
js-aref
(class).
js-array
(function).
js-body
(class).
js-break
(function).
js-cc-if
(function).
js-compile-list
(function).
js-compile-to-body
(function).
js-compile-to-expression
(function).
js-compile-to-statement
(function).
js-compile-to-symbol
(function).
js-compiler-macro-form-p
(function).
js-cond
(function).
js-cond
(class).
js-continue
(function).
js-convert-op-name
(function).
js-create
(function).
js-decf
(function).
js-defun
(function).
js-defun
(class).
js-defvar
(function).
js-defvar
(class).
js-delete
(function).
js-delete
(class).
js-do
(function).
js-doeach
(function).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-equal
(method).
js-expand-form
(function).
js-false
(function).
js-for
(class).
js-gensym
(function).
js-get-compiler-macro
(function).
js-if
(function).
js-if
(class).
js-incf
(function).
js-instanceof
(function).
js-instanceof
(class).
js-js
(function).
js-js-inline
(function).
js-lambda
(function).
js-lambda
(class).
js-let
(function).
js-macrolet
(function).
js-new
(function).
js-new
(class).
js-nil
(function).
js-not
(function).
js-object
(class).
js-progn
(function).
js-quote
(class).
js-regex
(function).
js-return
(function).
js-return
(class).
js-setf
(function).
js-setf
(class).
js-slot-value
(function).
js-slot-value
(class).
js-sub-body
(class).
js-switch
(function).
js-switch
(class).
js-t
(function).
js-this
(function).
js-throw
(function).
js-throw
(class).
js-try
(function).
js-try
(class).
js-typeof
(function).
js-typeof
(class).
js-undefined
(function).
js-variable
(class).
js-void
(function).
js-void
(class).
js-while
(function).
js-while
(class).
js-with
(function).
js-with
(class).
js-{}
(function).
klammer
(function).
lambda-args
(reader method).
(setf lambda-args)
(writer method).
lambda-body
(reader method).
(setf lambda-body)
(writer method).
lisp-special-char-to-js
(function).
lookup-macro
(function).
m-args
(reader method).
(setf m-args)
(writer method).
m-method
(reader method).
(setf m-method)
(writer method).
m-object
(reader method).
(setf m-object)
(writer method).
make-for-steps
(function).
make-for-vars
(function).
make-js-test
(function).
method-call
(class).
method-call-p
(function).
number-literal
(class).
o-slots
(reader method).
(setf o-slots)
(writer method).
object-literal
(class).
object-values
(reader method).
(setf object-values)
(writer method).
one-op
(reader method).
(setf one-op)
(writer method).
one-op
(class).
one-op-pre-p
(reader method).
(setf one-op-pre-p)
(writer method).
op-args
(reader method).
(setf op-args)
(writer method).
op-form
(class).
op-form-p
(function).
op-precedence
(function).
operator
(reader method).
(setf operator)
(writer method).
setf-lhs
(reader method).
(setf setf-lhs)
(writer method).
setf-rhsides
(reader method).
(setf setf-rhsides)
(writer method).
special-append-to-last
(function).
statement
(class).
string-chars
(function).
string-literal
(class).
sv-object
(reader method).
(setf sv-object)
(writer method).
sv-slot
(reader method).
(setf sv-slot)
(writer method).
symbol-to-js
(function).
try-body
(reader method).
(setf try-body)
(writer method).
try-catch
(reader method).
(setf try-catch)
(writer method).
try-finally
(reader method).
(setf try-finally)
(writer method).
undefine-js-compiler-macro
(function).
untouchable-string-p
(function).
value
(reader method).
(setf value)
(writer method).
var-names
(reader method).
(setf var-names)
(writer method).
var-value
(reader method).
(setf var-value)
(writer method).
while-body
(reader method).
(setf while-body)
(writer method).
while-check
(reader method).
(setf while-check)
(writer method).
with-body
(reader method).
(setf with-body)
(writer method).
with-obj
(reader method).
(setf with-obj)
(writer method).
parenscript-classic/src/js-html.lisp
package.lisp
(file).
js.lisp
(file).
utils.lisp
(file).
src
(module).
js-css-inline
(function).
js-html
(function).
optimize-string-list
(function).
process-css-forms
(function).
process-html-forms
(function).
parenscript-classic/src/css.lisp
package.lisp
(file).
utils.lisp
(file).
src
(module).
css
(macro).
css-file
(macro).
css-inline
(macro).
css-to-string
(function).
css-inline-func
(function).
css-rule
(macro).
css-rule-properties
(function).
css-rule-selectors
(function).
css-rule-to-string
(function).
make-css-rule
(function).
propval-to-string
(function).
parenscript-classic/src/compile-js.lisp
package.lisp
(file).
js.lisp
(file).
src
(module).
compile-parenscript-file
(function).
compile-parenscript-file-to-string
(function).
Packages are listed by definition order.
js
common-lisp
.
cc-if
(class).
compile-parenscript-file
(function).
compile-parenscript-file-to-string
(function).
css
(macro).
css-file
(macro).
css-inline
(macro).
css-to-string
(function).
defjsmacro
(macro).
gen-js-name
(function).
gen-js-name-string
(function).
import-macros-from-lisp
(function).
js
(macro).
js*
(macro).
js-compile
(function).
js-file
(macro).
js-inline
(macro).
js-inline*
(macro).
js-script
(macro).
js-to-line
(function).
js-to-statement-strings
(generic function).
js-to-string
(function).
js-to-strings
(generic function).
regex
(class).
with-unique-js-names
(macro).
*gen-js-name-counter*
(special variable).
*js-compiler-macros*
(special variable).
*js-lisp-escaped-chars*
(special variable).
*js-macro-env*
(special variable).
*js-macro-toplevel*
(special variable).
*js-quote-char*
(special variable).
*op-precedence-hash*
(special variable).
*special-chars*
(special variable).
*var-counter*
(special variable).
append-to-last
(function).
aref-array
(generic reader).
(setf aref-array)
(generic writer).
aref-index
(generic reader).
(setf aref-index)
(generic writer).
array-literal
(class).
array-values
(generic reader).
(setf array-values)
(generic writer).
assignment-op
(function).
b-indent
(generic reader).
(setf b-indent)
(generic writer).
b-stmts
(generic reader).
(setf b-stmts)
(generic writer).
case-clauses
(generic reader).
(setf case-clauses)
(generic writer).
case-value
(generic reader).
(setf case-value)
(generic writer).
cc-if-body
(generic reader).
(setf cc-if-body)
(generic writer).
cc-if-test
(generic reader).
(setf cc-if-test)
(generic writer).
cond-bodies
(generic reader).
(setf cond-bodies)
(generic writer).
cond-tests
(generic reader).
(setf cond-tests)
(generic writer).
constant-string-p
(function).
css-inline-func
(function).
css-rule
(macro).
css-rule-properties
(function).
css-rule-selectors
(function).
css-rule-to-string
(function).
define-js-compiler-macro
(macro).
define-js-single-op
(macro).
defjsclass
(macro).
defjskeyword
(macro).
defjsliteral
(macro).
defun-name
(generic reader).
(setf defun-name)
(generic writer).
dwim-join
(function).
expression
(class).
expression-precedence
(generic function).
f-args
(generic reader).
(setf f-args)
(generic writer).
f-function
(generic reader).
(setf f-function)
(generic writer).
fe-body
(generic reader).
(setf fe-body)
(generic writer).
fe-name
(generic reader).
(setf fe-name)
(generic writer).
fe-value
(generic reader).
(setf fe-value)
(generic writer).
first-slash-p
(function).
first-uppercase-p
(function).
for-body
(generic reader).
(setf for-body)
(generic writer).
for-check
(generic reader).
(setf for-check)
(generic writer).
for-each
(class).
for-steps
(generic reader).
(setf for-steps)
(generic writer).
for-vars
(generic reader).
(setf for-vars)
(generic writer).
funcall-form-p
(function).
function-call
(class).
function-start-string
(generic function).
if-else
(generic reader).
(setf if-else)
(generic writer).
if-test
(generic reader).
(setf if-test)
(generic writer).
if-then
(generic reader).
(setf if-then)
(generic writer).
js-++
(function).
js--
(function).
js---
(function).
js-aref
(function).
js-aref
(class).
js-array
(function).
js-body
(class).
js-break
(function).
js-cc-if
(function).
js-compile-list
(function).
js-compile-to-body
(function).
js-compile-to-expression
(function).
js-compile-to-statement
(function).
js-compile-to-symbol
(function).
js-compiler-macro-form-p
(function).
js-cond
(function).
js-cond
(class).
js-continue
(function).
js-convert-op-name
(function).
js-create
(function).
js-css-inline
(function).
js-decf
(function).
js-defun
(function).
js-defun
(class).
js-defvar
(function).
js-defvar
(class).
js-delete
(function).
js-delete
(class).
js-do
(function).
js-doeach
(function).
js-equal
(generic function).
js-expand-form
(function).
js-false
(function).
js-for
(class).
js-gensym
(function).
js-get-compiler-macro
(function).
js-html
(function).
js-if
(function).
js-if
(class).
js-incf
(function).
js-instanceof
(function).
js-instanceof
(class).
js-js
(function).
js-js-inline
(function).
js-lambda
(function).
js-lambda
(class).
js-let
(function).
js-macrolet
(function).
js-new
(function).
js-new
(class).
js-nil
(function).
js-not
(function).
js-object
(class).
js-progn
(function).
js-quote
(class).
js-regex
(function).
js-return
(function).
js-return
(class).
js-setf
(function).
js-setf
(class).
js-slot-value
(function).
js-slot-value
(class).
js-sub-body
(class).
js-switch
(function).
js-switch
(class).
js-t
(function).
js-this
(function).
js-throw
(function).
js-throw
(class).
js-try
(function).
js-try
(class).
js-typeof
(function).
js-typeof
(class).
js-undefined
(function).
js-variable
(class).
js-void
(function).
js-void
(class).
js-while
(function).
js-while
(class).
js-with
(function).
js-with
(class).
js-{}
(function).
klammer
(function).
lambda-args
(generic reader).
(setf lambda-args)
(generic writer).
lambda-body
(generic reader).
(setf lambda-body)
(generic writer).
lisp-special-char-to-js
(function).
list-join
(function).
list-to-string
(function).
lookup-macro
(function).
m-args
(generic reader).
(setf m-args)
(generic writer).
m-method
(generic reader).
(setf m-method)
(generic writer).
m-object
(generic reader).
(setf m-object)
(generic writer).
make-css-rule
(function).
make-for-steps
(function).
make-for-vars
(function).
make-js-test
(function).
method-call
(class).
method-call-p
(function).
number-literal
(class).
o-slots
(generic reader).
(setf o-slots)
(generic writer).
object-literal
(class).
object-values
(generic reader).
(setf object-values)
(generic writer).
one-op
(generic reader).
(setf one-op)
(generic writer).
one-op
(class).
one-op-pre-p
(generic reader).
(setf one-op-pre-p)
(generic writer).
op-args
(generic reader).
(setf op-args)
(generic writer).
op-form
(class).
op-form-p
(function).
op-precedence
(function).
operator
(generic reader).
(setf operator)
(generic writer).
optimize-string-list
(function).
prepend-to-first
(function).
process-css-forms
(function).
process-html-forms
(function).
propval-to-string
(function).
setf-lhs
(generic reader).
(setf setf-lhs)
(generic writer).
setf-rhsides
(generic reader).
(setf setf-rhsides)
(generic writer).
special-append-to-last
(function).
statement
(class).
string-chars
(function).
string-join
(function).
string-literal
(class).
string-split
(function).
sv-object
(generic reader).
(setf sv-object)
(generic writer).
sv-slot
(generic reader).
(setf sv-slot)
(generic writer).
symbol-to-js
(function).
try-body
(generic reader).
(setf try-body)
(generic writer).
try-catch
(generic reader).
(setf try-catch)
(generic writer).
try-finally
(generic reader).
(setf try-finally)
(generic writer).
undefine-js-compiler-macro
(function).
untouchable-string-p
(function).
val-to-string
(function).
value
(generic reader).
(setf value)
(generic writer).
var-names
(generic reader).
(setf var-names)
(generic writer).
var-value
(generic reader).
(setf var-value)
(generic writer).
while-body
(generic reader).
(setf while-body)
(generic writer).
while-check
(generic reader).
(setf while-check)
(generic writer).
with-body
(generic reader).
(setf with-body)
(generic writer).
with-obj
(generic reader).
(setf with-obj)
(generic writer).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Define a javascript macro, and store it in the toplevel macro environment.
Return the javascript string representing BODY.
Body is evaluated.
Just like JS-INLINE except that BODY is evaluated before being converted to javascript.
Evaluate BODY with the variables on SYMBOLS bound to new javascript identifiers.
Each element of SYMBOLS is either a symbol or a list of (symbol
prefix).
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.
js
.
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.
js
.
Generate a new javascript identifier.
Generates a unique valid javascript identifier ()
Import the named lisp macros into the js macro expansion
Transform an enscript-javascript code fragment to a string
js
.
js-sub-body
) start-pos) ¶expression
) start-pos) ¶Transform an enscript-javascript expression to a string
js
.
js-instanceof
) start-pos) ¶js-slot-value
) start-pos) ¶method-call
) start-pos) ¶function-call
) start-pos) ¶js-variable
) start-form) ¶string-literal
) start-pos) ¶object-literal
) start-pos) ¶array-literal
) start-pos) ¶expression
) start-pos) ¶*JS-COMPILER-MACROS* is a hash-table containing the functions corresponding to javascript special forms, indexed by their name. Javascript special forms are compiler macros for JS expressions.
Toplevel of macro expansion, holds all the toplevel javascript macros.
Specifies which character JS sholud use for delimiting strings.
This variable is usefull when have to embed some javascript code in an html attribute delimited by #\" as opposed to #\’, or vice-versa.
Define a javascript compiler macro NAME. Arguments are destructured according to LAMBDA-LIST. The resulting JS language types are appended to the ongoing javascript compilation.
Define a Javascript keyword that will expand to STRING.
Define a Javascript literal that will expand to STRING.
Lookup the macro NAME in the current macro expansion environment. Returns the macro and the parent macro environment of this macro.
js
.
array-literal
)) ¶automatically generated reader method
js
.
array-literal
)) ¶automatically generated writer method
Returns the precedence of an enscript-javascript expression
js
.
expression
)) ¶js
.
function-call
)) ¶automatically generated reader method
js
.
function-call
)) ¶automatically generated writer method
js
.
function-call
)) ¶automatically generated reader method
js
.
function-call
)) ¶automatically generated writer method
Returns the string that starts the function - this varies according to whether this is a lambda or a defun
Determine if two enscript-javascript statements are equivalent
js
.
js-instanceof
) (obj2 js-instanceof
)) ¶js-sub-body
) (obj2 js-sub-body
)) ¶method-call
) (obj2 method-call
)) ¶function-call
) (obj2 function-call
)) ¶js-slot-value
) (obj2 js-slot-value
)) ¶js-variable
) (obj2 js-variable
)) ¶number-literal
) (obj2 number-literal
)) ¶string-literal
) (obj2 string-literal
)) ¶object-literal
) (obj2 object-literal
)) ¶array-literal
) (obj2 array-literal
)) ¶expression
) (obj2 expression
)) ¶js
.
method-call
)) ¶automatically generated reader method
js
.
method-call
)) ¶automatically generated writer method
js
.
method-call
)) ¶automatically generated reader method
js
.
method-call
)) ¶automatically generated writer method
js
.
method-call
)) ¶automatically generated reader method
js
.
method-call
)) ¶automatically generated writer method
js
.
object-literal
)) ¶automatically generated reader method
js
.
object-literal
)) ¶automatically generated writer method
js
.
js-slot-value
)) ¶automatically generated reader method
js
.
js-slot-value
)) ¶automatically generated writer method
js
.
js-slot-value
)) ¶automatically generated reader method
js
.
js-slot-value
)) ¶automatically generated writer method
Jump to: | (
A B C D E F G I J K L M O P S T U V W |
---|
Jump to: | (
A B C D E F G I J K L M O P S T U V W |
---|
Jump to: | *
A B C E F I L M N O P R S T V |
---|
Jump to: | *
A B C E F I L M N O P R S T V |
---|
Jump to: | A C D E F J L M N O P R S U |
---|
Jump to: | A C D E F J L M N O P R S U |
---|