Common Lisp Package: CL-UGLIFY-JS

README:

FUNCTION

Public

SPLIT-CODE (CODE &OPTIONAL (MAXLEN (* 32 1024)))

Inserts newlines into the given `code' (must be a string) as soon as lines are bigger than `maxlen' (default 32K). Note that the lines in the output will generally be bigger than `maxlen'. This function splits code only *before* a :KEYWORD, :ATOM, :NAME or :PUNC, and it never splits *after* a :KEYWORD (in order not to break the JS semantics, which say that no newline is allowed between return or throw and their arguments).

Undocumented

AST-GEN-CODE (AST &KEY (BEAUTIFY *CODEGEN-BEAUTIFY*) (INDENT-LEVEL *CODEGEN-INDENT-LEVEL*) (INDENT-START *CODEGEN-INDENT-START*) (QUOTE-KEYS *CODEGEN-QUOTE-KEYS*))

AST-MANGLE (AST &KEY TOPLEVEL)

AST-SQUEEZE (AST &KEY (SEQUENCES T) (DEAD-CODE T) &AUX STACK)

Private

SCOPE-CHILDREN (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

SCOPE-CNAME (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

SCOPE-LEVEL (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

SCOPE-MANGLED (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

SCOPE-NAMES (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

SCOPE-PARENT (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

SCOPE-REFS (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

SCOPE-REV-MANGLED (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

SCOPE-USES-EVAL (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

SCOPE-USES-WITH (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

TOPVAL-V (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

WRITE-JSON-CHARS (QUOTE S STREAM)

Write JSON representations (chars or escape sequences) of characters in string S to STREAM.

Undocumented

ABORTS (NODE)

BASE54 (NUM)

BEST-OF (AST1 AST2)

BOOLEAN-EXPR (EXPR)

CONDITIONAL (COND THEN &OPTIONAL ELSE)

COPY-SCOPE (INSTANCE)

COPY-TOPVAL (INSTANCE)

CURRY (FUNC &REST A1)

EMPTY (B)

IS-IDENTIFIER (NAME)

MAKE-SCOPE (&KEY ((NAMES DUM0) (MAKE-HASH-TABLE TEST #'EQUAL)) ((MANGLED DUM1) (MAKE-HASH-TABLE TEST #'EQUAL)) ((REV-MANGLED DUM2) (MAKE-HASH-TABLE TEST #'EQUAL)) ((CNAME DUM3) -1) ((REFS DUM4) (MAKE-HASH-TABLE TEST #'EQUAL)) ((USES-EVAL DUM5) NIL) ((USES-WITH DUM6) NIL) ((LEVEL DUM7) 0) ((PARENT DUM8) NIL) ((CHILDREN DUM9) NIL))

MAKE-TOPVAL (&KEY ((V DUM28) NIL))

MYMAP (FUNC LIST)

NEGATE (C)

NEW-SCOPE (&OPTIONAL PARENT)

QUOTE-STRING (STR)

RMBLOCK (BLOCK)

SETFSCOPE-CHILDREN (NEW-VALUE INSTANCE)

SETFSCOPE-CNAME (NEW-VALUE INSTANCE)

SCOPE-DEFINE (SCOPE NAME)

SCOPE-GET-MANGLED (SCOPE NAME &OPTIONAL MAKE)

SCOPE-HAS (SCOPE NAME)

SCOPE-HAS-MANGLED (SCOPE MNAME)

SETFSCOPE-LEVEL (NEW-VALUE INSTANCE)

SETFSCOPE-MANGLED (NEW-VALUE INSTANCE)

SETFSCOPE-NAMES (NEW-VALUE INSTANCE)

SCOPE-NEXT-MANGLED (SCOPE)

SCOPE-P (OBJECT)

SETFSCOPE-PARENT (NEW-VALUE INSTANCE)

SETFSCOPE-REFS (NEW-VALUE INSTANCE)

SETFSCOPE-REV-MANGLED (NEW-VALUE INSTANCE)

SETFSCOPE-USES-EVAL (NEW-VALUE INSTANCE)

SETFSCOPE-USES-WITH (NEW-VALUE INSTANCE)

STICK (&REST ELEMENTS)

TOPVAL-P (OBJECT)

SETFTOPVAL-V (NEW-VALUE INSTANCE)

VARLIST (NAMES)

WRITE-REGEXP (S STREAM)

MACRO

Public

Undocumented

AST-CASE (EXPR &BODY BODY)

AST-WALK ((AST &OPTIONAL (EXPR 'EXPR) (WALK 'WALK) STACK) &BODY BODY)

Private

Undocumented

AWHEN++ ((VAR COND) &BODY BODY)

FOREACH-SCOPE-PARENT ((SCOPE VAR) &BODY BODY)

GENERIC-FUNCTION

Private

Undocumented

BINARY-OP (OP LEFT RIGHT)

VARIABLE

Private

+JSON-LISP-ESCAPED-CHARS+

Mapping between JSON String escape sequences and Lisp chars.

Undocumented

*CODEGEN-BEAUTIFY*

*CODEGEN-INDENT-LEVEL*

*CODEGEN-INDENT-START*

*CODEGEN-NEWLINE*

*CODEGEN-QUOTE-KEYS*

*CODEGEN-TL-NEWLINE*

*CURRENT-SCOPE*

*PRECEDENCE*

CLASS

Private

Undocumented

SCOPE

TOPVAL