The js-parser Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The js-parser Reference Manual

This is the js-parser Reference Manual, generated automatically by Declt version 2.3 "Robert April" on Wed Mar 14 04:06:00 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

1.1 js-parser

Author

Red Daly

License

MIT License <http://www.opensource.org/licenses/mit-license.php>

Dependency

cl-ppcre

Source

js-parser.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

2 Modules

Modules are listed depth-first from the system components tree.


Next: , Previous: , Up: Modules   [Contents][Index]

2.1 js-parser/external

Parent

js-parser (system)

Location

external/

Component

jsyacc.lisp (file)


Previous: , Up: Modules   [Contents][Index]

2.2 js-parser/src

Dependency

external (module)

Parent

js-parser (system)

Location

src/

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 js-parser.asd

Location

js-parser.asd

Systems

js-parser (system)

Packages

js-parser-system

Exported Definitions

*version* (special variable)

Internal Definitions

*muffle-conflicts* (special variable)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 js-parser/external/jsyacc.lisp

Parent

external (module)

Location

external/jsyacc.lisp

Packages

jsyacc

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.3 js-parser/src/package.lisp

Parent

src (module)

Location

src/package.lisp

Packages

js-parser


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.4 js-parser/src/general-utilities.lisp

Dependency

package.lisp (file)

Parent

src (module)

Location

src/general-utilities.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.5 js-parser/src/conditions.lisp

Dependency

general-utilities.lisp (file)

Parent

src (module)

Location

src/conditions.lisp

Exported Definitions

syntax-error (condition)

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.6 js-parser/src/lexer-macros.lisp

Dependency

conditions.lisp (file)

Parent

src (module)

Location

src/lexer-macros.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.7 js-parser/src/lex-javascript.lisp

Dependency

lexer-macros.lisp (file)

Parent

src (module)

Location

src/lex-javascript.lisp

Exported Definitions

*symbols-to-tokens* (special variable)

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.8 js-parser/src/js-source-model.lisp

Dependency

lex-javascript.lisp (file)

Parent

src (module)

Location

src/js-source-model.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.9 js-parser/src/parse-javascript-yacc.lisp

Dependency

js-source-model.lisp (file)

Parent

src (module)

Location

src/parse-javascript-yacc.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.10 js-parser/src/parse-javascript.lisp

Dependency

parse-javascript-yacc.lisp (file)

Parent

src (module)

Location

src/parse-javascript.lisp

Exported Definitions

parse (function)

Internal Definitions

Previous: , Up: Lisp files   [Contents][Index]

3.1.11 js-parser/src/source-transformations.lisp

Dependency

parse-javascript.lisp (file)

Parent

src (module)

Location

src/source-transformations.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Next: , Previous: , Up: Packages   [Contents][Index]

4.1 js-parser-system

Source

js-parser.asd

Use List
Exported Definitions

*version* (special variable)

Internal Definitions

*muffle-conflicts* (special variable)


Next: , Previous: , Up: Packages   [Contents][Index]

4.2 jsyacc

Source

jsyacc.lisp (file)

Use List

common-lisp

Exported Definitions
Internal Definitions

Previous: , Up: Packages   [Contents][Index]

4.3 js-parser

Source

package.lisp (file)

Use List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Special variables

Special Variable: *symbols-to-tokens*

Map from token symbol to token string. This contains an entry for every token in *tokens-to-symbols*, plus additional entries for the ’operation’ symbols.

Package

js-parser

Source

lex-javascript.lisp (file)

Special Variable: *version*

The current version

Package

js-parser-system

Source

js-parser.asd


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Macros

Macro: define-grammar NAME &body BODY

DEFINE-GRAMMAR NAME OPTION... PRODUCTION...
PRODUCTION ::= (SYMBOL RHS...)
RHS ::= SYMBOL | (SYMBOL... [ACTION])
Defines the special variable NAME to be a grammar. Options are as in MAKE-GRAMMAR.

Package

jsyacc

Source

jsyacc.lisp (file)

Macro: define-parser NAME &body BODY

DEFINE-GRAMMAR NAME OPTION... PRODUCTION...
PRODUCTION ::= (SYMBOL RHS...)
RHS ::= SYMBOL | (SYMBOL... [ACTION])
Defines the special variable NAME to be a parser. Options are as in MAKE-GRAMMAR and MAKE-PARSER.

Package

jsyacc

Source

jsyacc.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.3 Functions

Function: array-literal-elements INSTANCE
Function: (setf array-literal-elements) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: array-literal-end INSTANCE
Function: (setf array-literal-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: array-literal-label INSTANCE
Function: (setf array-literal-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: array-literal-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: array-literal-start INSTANCE
Function: (setf array-literal-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: binary-operator-end INSTANCE
Function: (setf binary-operator-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: binary-operator-label INSTANCE
Function: (setf binary-operator-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: binary-operator-left-arg INSTANCE
Function: (setf binary-operator-left-arg) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: binary-operator-op-symbol INSTANCE
Function: (setf binary-operator-op-symbol) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: binary-operator-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: binary-operator-right-arg INSTANCE
Function: (setf binary-operator-right-arg) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: binary-operator-start INSTANCE
Function: (setf binary-operator-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: break-statement-end INSTANCE
Function: (setf break-statement-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: break-statement-label INSTANCE
Function: (setf break-statement-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: break-statement-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: break-statement-start INSTANCE
Function: (setf break-statement-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: break-statement-target-label INSTANCE
Function: (setf break-statement-target-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: case-clause-body INSTANCE
Function: (setf case-clause-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: case-clause-end INSTANCE
Function: (setf case-clause-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: case-clause-label INSTANCE
Function: (setf case-clause-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: case-clause-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: case-clause-start INSTANCE
Function: (setf case-clause-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: case-clause-value INSTANCE
Function: (setf case-clause-value) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: catch-clause-binding INSTANCE
Function: (setf catch-clause-binding) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: catch-clause-body INSTANCE
Function: (setf catch-clause-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: catch-clause-end INSTANCE
Function: (setf catch-clause-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: catch-clause-label INSTANCE
Function: (setf catch-clause-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: catch-clause-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: catch-clause-start INSTANCE
Function: (setf catch-clause-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: comma-expr-end INSTANCE
Function: (setf comma-expr-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: comma-expr-exprs INSTANCE
Function: (setf comma-expr-exprs) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: comma-expr-label INSTANCE
Function: (setf comma-expr-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: comma-expr-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: comma-expr-start INSTANCE
Function: (setf comma-expr-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: conditional-condition INSTANCE
Function: (setf conditional-condition) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: conditional-end INSTANCE
Function: (setf conditional-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: conditional-false-arg INSTANCE
Function: (setf conditional-false-arg) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: conditional-label INSTANCE
Function: (setf conditional-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: conditional-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: conditional-start INSTANCE
Function: (setf conditional-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: conditional-true-arg INSTANCE
Function: (setf conditional-true-arg) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continue-statement-end INSTANCE
Function: (setf continue-statement-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continue-statement-label INSTANCE
Function: (setf continue-statement-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continue-statement-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: continue-statement-start INSTANCE
Function: (setf continue-statement-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continue-statement-target-label INSTANCE
Function: (setf continue-statement-target-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: default-clause-body INSTANCE
Function: (setf default-clause-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: default-clause-end INSTANCE
Function: (setf default-clause-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: default-clause-label INSTANCE
Function: (setf default-clause-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: default-clause-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: default-clause-start INSTANCE
Function: (setf default-clause-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: do-statement-body INSTANCE
Function: (setf do-statement-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: do-statement-condition INSTANCE
Function: (setf do-statement-condition) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: do-statement-end INSTANCE
Function: (setf do-statement-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: do-statement-label INSTANCE
Function: (setf do-statement-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: do-statement-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: do-statement-start INSTANCE
Function: (setf do-statement-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: expression-end INSTANCE
Function: (setf expression-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: expression-label INSTANCE
Function: (setf expression-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: expression-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: expression-start INSTANCE
Function: (setf expression-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: finally-clause-body INSTANCE
Function: (setf finally-clause-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: finally-clause-end INSTANCE
Function: (setf finally-clause-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: finally-clause-label INSTANCE
Function: (setf finally-clause-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: finally-clause-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: finally-clause-start INSTANCE
Function: (setf finally-clause-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: fn-call-args INSTANCE
Function: (setf fn-call-args) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: fn-call-end INSTANCE
Function: (setf fn-call-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: fn-call-fn INSTANCE
Function: (setf fn-call-fn) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: fn-call-label INSTANCE
Function: (setf fn-call-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: fn-call-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: fn-call-start INSTANCE
Function: (setf fn-call-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-body INSTANCE
Function: (setf for-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-condition INSTANCE
Function: (setf for-condition) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-end INSTANCE
Function: (setf for-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-in-binding INSTANCE
Function: (setf for-in-binding) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-in-body INSTANCE
Function: (setf for-in-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-in-collection INSTANCE
Function: (setf for-in-collection) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-in-end INSTANCE
Function: (setf for-in-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-in-label INSTANCE
Function: (setf for-in-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-in-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-in-start INSTANCE
Function: (setf for-in-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-initializer INSTANCE
Function: (setf for-initializer) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-label INSTANCE
Function: (setf for-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-start INSTANCE
Function: (setf for-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: for-step INSTANCE
Function: (setf for-step) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-decl-body INSTANCE
Function: (setf function-decl-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-decl-end INSTANCE
Function: (setf function-decl-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-decl-label INSTANCE
Function: (setf function-decl-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-decl-name INSTANCE
Function: (setf function-decl-name) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-decl-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-decl-parameters INSTANCE
Function: (setf function-decl-parameters) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-decl-start INSTANCE
Function: (setf function-decl-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-expression-body INSTANCE
Function: (setf function-expression-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-expression-end INSTANCE
Function: (setf function-expression-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-expression-label INSTANCE
Function: (setf function-expression-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-expression-name INSTANCE
Function: (setf function-expression-name) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-expression-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-expression-parameters INSTANCE
Function: (setf function-expression-parameters) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: function-expression-start INSTANCE
Function: (setf function-expression-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: get-constructor STRUCT-OBJECT

Accept a structure object and return the (likely) name of its constructor. CAVEAT: Assumes that the structure was defined in the same package as its name.

Package

js-parser

Source

source-transformations.lisp (file)

Function: identifier-end INSTANCE
Function: (setf identifier-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: identifier-label INSTANCE
Function: (setf identifier-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: identifier-name INSTANCE
Function: (setf identifier-name) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: identifier-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: identifier-start INSTANCE
Function: (setf identifier-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: if-statement-condition INSTANCE
Function: (setf if-statement-condition) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: if-statement-else-statement INSTANCE
Function: (setf if-statement-else-statement) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: if-statement-end INSTANCE
Function: (setf if-statement-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: if-statement-label INSTANCE
Function: (setf if-statement-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: if-statement-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: if-statement-start INSTANCE
Function: (setf if-statement-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: if-statement-then-statement INSTANCE
Function: (setf if-statement-then-statement) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-add-handler &key (LABEL LABEL) (START START) (END END) (HANDLER HANDLER) (THUNK-BODY THUNK-BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-array-literal &key (LABEL LABEL) (START START) (END END) (ELEMENTS ELEMENTS)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-binary-operator &key (LABEL LABEL) (START START) (END END) (OP-SYMBOL OP-SYMBOL) (LEFT-ARG LEFT-ARG) (RIGHT-ARG RIGHT-ARG)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-break-statement &key (LABEL LABEL) (START START) (END END) (TARGET-LABEL TARGET-LABEL)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-case-clause &key (LABEL LABEL) (START START) (END END) (VALUE VALUE) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-catch-clause &key (LABEL LABEL) (START START) (END END) (BINDING BINDING) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-comma-expr &key (LABEL LABEL) (START START) (END END) (EXPRS EXPRS)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-conditional &key (LABEL LABEL) (START START) (END END) (CONDITION CONDITION) (TRUE-ARG TRUE-ARG) (FALSE-ARG FALSE-ARG)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-continue-statement &key (LABEL LABEL) (START START) (END END) (TARGET-LABEL TARGET-LABEL)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-default-clause &key (LABEL LABEL) (START START) (END END) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-do-statement &key (LABEL LABEL) (START START) (END END) (CONDITION CONDITION) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-finally-clause &key (LABEL LABEL) (START START) (END END) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-fn-call &key (LABEL LABEL) (START START) (END END) (FN FN) (ARGS ARGS)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-for &key (LABEL LABEL) (START START) (END END) (INITIALIZER INITIALIZER) (CONDITION CONDITION) (STEP STEP) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-for-in &key (LABEL LABEL) (START START) (END END) (BINDING BINDING) (COLLECTION COLLECTION) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-function-decl &key (LABEL LABEL) (START START) (END END) (NAME NAME) (PARAMETERS PARAMETERS) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-function-expression &key (LABEL LABEL) (START START) (END END) (NAME NAME) (PARAMETERS PARAMETERS) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-grammar &key NAME START-SYMBOL TERMINALS PRECEDENCE PRODUCTIONS
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-identifier &key (LABEL LABEL) (START START) (END END) (NAME NAME)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-if-statement &key (LABEL LABEL) (START START) (END END) (CONDITION CONDITION) (THEN-STATEMENT THEN-STATEMENT) (ELSE-STATEMENT ELSE-STATEMENT)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-import-decl &key (LABEL LABEL) (START START) (END END) (TYPE-SYMBOL TYPE-SYMBOL) (URIPATH URIPATH)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-keyword X

Makes a keyword out of a symbol.

Package

js-parser

Source

source-transformations.lisp (file)

Function: make-new-expr &key (LABEL LABEL) (START START) (END END) (CONSTRUCTOR CONSTRUCTOR) (ARGS ARGS)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-numeric-literal &key (LABEL LABEL) (START START) (END END) (VALUE VALUE)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-object-literal &key (LABEL LABEL) (START START) (END END) (PROPERTIES PROPERTIES)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-parser GRAMMAR &key DISCARD-MEMOS MUFFLE-CONFLICTS PRINT-DERIVES-EPSILON PRINT-FIRST-TERMINALS PRINT-STATES PRINT-GOTO-GRAPH PRINT-LOOKAHEADS

Combines COMPUTE-ALL-LOOKAHEADS and COMPUTE-PARSING-TABLES. MUFFLE-WARNINGS is one of NIL, T, :SOME or a list of the form (sr rr).

Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-production SYMBOL DERIVES &key ACTION ACTION-FORM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-property-access &key (LABEL LABEL) (START START) (END END) (TARGET TARGET) (FIELD FIELD)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-re-literal &key (LABEL LABEL) (START START) (END END) (PATTERN PATTERN) (OPTIONS OPTIONS)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-remove-handler &key (LABEL LABEL) (START START) (END END) (HANDLER HANDLER) (THUNK-BODY THUNK-BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-resume-statement &key (LABEL LABEL) (START START) (END END) (TARGET TARGET) (ARG ARG)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-return-statement &key (LABEL LABEL) (START START) (END END) (ARG ARG)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-source-element &key (LABEL LABEL) (START START) (END END)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-special-value &key (LABEL LABEL) (START START) (END END) (SYMBOL SYMBOL)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-statement-block &key (LABEL LABEL) (START START) (END END) (STATEMENTS STATEMENTS)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-string-literal &key (LABEL LABEL) (START START) (END END) (VALUE VALUE)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-suspend-statement &key (LABEL LABEL) (START START) (END END)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-switch &key (LABEL LABEL) (START START) (END END) (VALUE VALUE) (CLAUSES CLAUSES)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-throw-statement &key (LABEL LABEL) (START START) (END END) (VALUE VALUE) (TARGET TARGET)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-try &key (LABEL LABEL) (START START) (END END) (BODY BODY) (CATCH-CLAUSE CATCH-CLAUSE) (FINALLY-CLAUSE FINALLY-CLAUSE)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-unary-operator &key (LABEL LABEL) (START START) (END END) (OP-SYMBOL OP-SYMBOL) (ARG ARG)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-var-decl &key (LABEL LABEL) (START START) (END END) (NAME NAME) (INITIALIZER INITIALIZER)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-var-decl-statement &key (LABEL LABEL) (START START) (END END) (VAR-DECLS VAR-DECLS)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-while &key (LABEL LABEL) (START START) (END END) (CONDITION CONDITION) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-with &key (LABEL LABEL) (START START) (END END) (SCOPE-OBJECT SCOPE-OBJECT) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: new-expr-args INSTANCE
Function: (setf new-expr-args) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: new-expr-constructor INSTANCE
Function: (setf new-expr-constructor) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: new-expr-end INSTANCE
Function: (setf new-expr-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: new-expr-label INSTANCE
Function: (setf new-expr-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: new-expr-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: new-expr-start INSTANCE
Function: (setf new-expr-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: numeric-literal-end INSTANCE
Function: (setf numeric-literal-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: numeric-literal-label INSTANCE
Function: (setf numeric-literal-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: numeric-literal-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: numeric-literal-start INSTANCE
Function: (setf numeric-literal-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: numeric-literal-value INSTANCE
Function: (setf numeric-literal-value) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: object-literal-end INSTANCE
Function: (setf object-literal-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: object-literal-label INSTANCE
Function: (setf object-literal-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: object-literal-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: object-literal-properties INSTANCE
Function: (setf object-literal-properties) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: object-literal-start INSTANCE
Function: (setf object-literal-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: parse STR

Parse STR as a Javascript script, returning a list of statements. Semicolon insertion is performed according to the ECMA-262 standard.

Package

js-parser

Source

parse-javascript.lisp (file)

Function: parse-with-lexer LEXER PARSER

Parse the stream of symbols provided by LEXER using PARSER.
LEXER is a function of no arguments returning a symbol and a semantic value, and should return (VALUES NIL NIL) when the end of input is reached. Handle YACC-PARSE-ERROR to provide custom error reporting.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: property-access-end INSTANCE
Function: (setf property-access-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: property-access-field INSTANCE
Function: (setf property-access-field) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: property-access-label INSTANCE
Function: (setf property-access-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: property-access-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: property-access-start INSTANCE
Function: (setf property-access-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: property-access-target INSTANCE
Function: (setf property-access-target) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: re-literal-end INSTANCE
Function: (setf re-literal-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: re-literal-label INSTANCE
Function: (setf re-literal-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: re-literal-options INSTANCE
Function: (setf re-literal-options) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: re-literal-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: re-literal-pattern INSTANCE
Function: (setf re-literal-pattern) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: re-literal-start INSTANCE
Function: (setf re-literal-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: return-statement-arg INSTANCE
Function: (setf return-statement-arg) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: return-statement-end INSTANCE
Function: (setf return-statement-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: return-statement-label INSTANCE
Function: (setf return-statement-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: return-statement-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: return-statement-start INSTANCE
Function: (setf return-statement-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: source-element-end INSTANCE
Function: (setf source-element-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: source-element-label INSTANCE
Function: (setf source-element-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: source-element-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: source-element-start INSTANCE
Function: (setf source-element-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: special-value-end INSTANCE
Function: (setf special-value-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: special-value-label INSTANCE
Function: (setf special-value-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: special-value-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: special-value-start INSTANCE
Function: (setf special-value-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: special-value-symbol INSTANCE
Function: (setf special-value-symbol) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: statement-block-end INSTANCE
Function: (setf statement-block-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: statement-block-label INSTANCE
Function: (setf statement-block-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: statement-block-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: statement-block-start INSTANCE
Function: (setf statement-block-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: statement-block-statements INSTANCE
Function: (setf statement-block-statements) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: string-literal-end INSTANCE
Function: (setf string-literal-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: string-literal-label INSTANCE
Function: (setf string-literal-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: string-literal-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: string-literal-start INSTANCE
Function: (setf string-literal-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: string-literal-value INSTANCE
Function: (setf string-literal-value) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: structure-slots OBJECT

Returns a list of the slot-names of the provided structure object

Package

js-parser

Source

source-transformations.lisp (file)

Function: switch-clauses INSTANCE
Function: (setf switch-clauses) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: switch-end INSTANCE
Function: (setf switch-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: switch-label INSTANCE
Function: (setf switch-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: switch-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: switch-start INSTANCE
Function: (setf switch-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: switch-value INSTANCE
Function: (setf switch-value) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: throw-statement-end INSTANCE
Function: (setf throw-statement-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: throw-statement-label INSTANCE
Function: (setf throw-statement-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: throw-statement-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: throw-statement-start INSTANCE
Function: (setf throw-statement-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: throw-statement-target INSTANCE
Function: (setf throw-statement-target) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: throw-statement-value INSTANCE
Function: (setf throw-statement-value) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: try-body INSTANCE
Function: (setf try-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: try-catch-clause INSTANCE
Function: (setf try-catch-clause) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: try-end INSTANCE
Function: (setf try-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: try-finally-clause INSTANCE
Function: (setf try-finally-clause) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: try-label INSTANCE
Function: (setf try-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: try-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: try-start INSTANCE
Function: (setf try-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: unary-operator-arg INSTANCE
Function: (setf unary-operator-arg) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: unary-operator-end INSTANCE
Function: (setf unary-operator-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: unary-operator-label INSTANCE
Function: (setf unary-operator-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: unary-operator-op-symbol INSTANCE
Function: (setf unary-operator-op-symbol) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: unary-operator-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: unary-operator-start INSTANCE
Function: (setf unary-operator-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: var-decl-end INSTANCE
Function: (setf var-decl-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: var-decl-initializer INSTANCE
Function: (setf var-decl-initializer) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: var-decl-label INSTANCE
Function: (setf var-decl-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: var-decl-name INSTANCE
Function: (setf var-decl-name) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: var-decl-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: var-decl-start INSTANCE
Function: (setf var-decl-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: var-decl-statement-end INSTANCE
Function: (setf var-decl-statement-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: var-decl-statement-label INSTANCE
Function: (setf var-decl-statement-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: var-decl-statement-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: var-decl-statement-start INSTANCE
Function: (setf var-decl-statement-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: var-decl-statement-var-decls INSTANCE
Function: (setf var-decl-statement-var-decls) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: while-body INSTANCE
Function: (setf while-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: while-condition INSTANCE
Function: (setf while-condition) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: while-end INSTANCE
Function: (setf while-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: while-label INSTANCE
Function: (setf while-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: while-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: while-start INSTANCE
Function: (setf while-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: with-body INSTANCE
Function: (setf with-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: with-end INSTANCE
Function: (setf with-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: with-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: with-scope-object INSTANCE
Function: (setf with-scope-object) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: with-start INSTANCE
Function: (setf with-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.4 Generic functions

Generic Function: yacc-parse-error-expected-terminals CONDITION
Package

jsyacc

Methods
Method: yacc-parse-error-expected-terminals (CONDITION yacc-parse-error)
Source

jsyacc.lisp (file)

Generic Function: yacc-parse-error-terminal CONDITION
Package

jsyacc

Methods
Method: yacc-parse-error-terminal (CONDITION yacc-parse-error)
Source

jsyacc.lisp (file)

Generic Function: yacc-parse-error-value CONDITION
Package

jsyacc

Methods
Method: yacc-parse-error-value (CONDITION yacc-parse-error)
Source

jsyacc.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.5 Conditions

Condition: syntax-error ()

Indicates that an error occured during parsing

Package

js-parser

Source

conditions.lisp (file)

Direct superclasses
Direct methods
Direct slots
Slot: token
Initargs

:token

Readers

token (generic function)

Slot: expected-terminals
Initargs

:expected-terminals

Readers

expected-terminals (generic function)

Condition: yacc-parse-error ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

error (condition)

Direct methods
Direct slots
Slot: terminal
Initargs

:terminal

Readers

yacc-parse-error-terminal (generic function)

Slot: value
Initargs

:value

Readers

yacc-parse-error-value (generic function)

Slot: expected-terminals
Initargs

:expected-terminals

Readers

yacc-parse-error-expected-terminals (generic function)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.6 Structures

Structure: array-literal ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: elements
Type

list

Readers

array-literal-elements (function)

Writers

(setf array-literal-elements) (function)

Structure: binary-operator ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods
Direct slots
Slot: op-symbol
Type

symbol

Readers

binary-operator-op-symbol (function)

Writers

(setf binary-operator-op-symbol) (function)

Slot: left-arg
Type

js-parser:source-element

Readers

binary-operator-left-arg (function)

Writers

(setf binary-operator-left-arg) (function)

Slot: right-arg
Type

js-parser:source-element

Readers

binary-operator-right-arg (function)

Writers

(setf binary-operator-right-arg) (function)

Structure: break-statement ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: target-label
Type

(or string null)

Readers

break-statement-target-label (function)

Writers

(setf break-statement-target-label) (function)

Structure: case-clause ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: value
Type

js-parser:expression

Readers

case-clause-value (function)

Writers

(setf case-clause-value) (function)

Slot: body
Type

(or (cons js-parser:source-element) null)

Readers

case-clause-body (function)

Writers

(setf case-clause-body) (function)

Structure: catch-clause ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: binding
Type

string

Readers

catch-clause-binding (function)

Writers

(setf catch-clause-binding) (function)

Slot: body
Type

(or (cons js-parser:source-element) null)

Readers

catch-clause-body (function)

Writers

(setf catch-clause-body) (function)

Structure: comma-expr ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods
Direct slots
Slot: exprs
Type

(or (cons js-parser:expression) null)

Readers

comma-expr-exprs (function)

Writers

(setf comma-expr-exprs) (function)

Structure: conditional ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods
Direct slots
Slot: condition
Type

js-parser:expression

Readers

conditional-condition (function)

Writers

(setf conditional-condition) (function)

Slot: true-arg
Type

js-parser:expression

Readers

conditional-true-arg (function)

Writers

(setf conditional-true-arg) (function)

Slot: false-arg
Type

js-parser:expression

Readers

conditional-false-arg (function)

Writers

(setf conditional-false-arg) (function)

Structure: continue-statement ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: target-label
Type

(or string null)

Readers

continue-statement-target-label (function)

Writers

(setf continue-statement-target-label) (function)

Structure: default-clause ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: body
Type

(or (cons js-parser:source-element) null)

Readers

default-clause-body (function)

Writers

(setf default-clause-body) (function)

Structure: do-statement ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods
Direct slots
Slot: condition
Type

js-parser:expression

Readers

do-statement-condition (function)

Writers

(setf do-statement-condition) (function)

Slot: body
Type

js-parser:source-element

Readers

do-statement-body (function)

Writers

(setf do-statement-body) (function)

Structure: expression ()

A common base type for all source elements that can be expressions. (note that every expression can be a statement, but not all statements can be expressions)

Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct subclasses
Direct methods

make-load-form (method)

Structure: finally-clause ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: body
Type

(or (cons js-parser:source-element) null)

Readers

finally-clause-body (function)

Writers

(setf finally-clause-body) (function)

Structure: fn-call ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct subclasses

continuation-call (structure)

Direct methods
Direct slots
Slot: fn
Type

js-parser:expression

Readers

fn-call-fn (function)

Writers

(setf fn-call-fn) (function)

Slot: args
Type

(or (cons js-parser:source-element) null)

Readers

fn-call-args (function)

Writers

(setf fn-call-args) (function)

Structure: for ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods
Direct slots
Slot: initializer
Type

(or js-parser:source-element null)

Readers

for-initializer (function)

Writers

(setf for-initializer) (function)

Slot: condition
Type

(or js-parser:expression null)

Readers

for-condition (function)

Writers

(setf for-condition) (function)

Slot: step
Type

(or js-parser:expression null)

Readers

for-step (function)

Writers

(setf for-step) (function)

Slot: body
Type

(or js-parser:source-element null)

Readers

for-body (function)

Writers

(setf for-body) (function)

Structure: for-in ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods
Direct slots
Slot: binding
Type

js-parser:source-element

Readers

for-in-binding (function)

Writers

(setf for-in-binding) (function)

Slot: collection
Type

js-parser:expression

Readers

for-in-collection (function)

Writers

(setf for-in-collection) (function)

Slot: body
Type

(or js-parser:source-element null)

Readers

for-in-body (function)

Writers

(setf for-in-body) (function)

Structure: function-decl ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods
Direct slots
Slot: name
Type

string

Readers

function-decl-name (function)

Writers

(setf function-decl-name) (function)

Slot: parameters
Type

(or (cons string) null)

Readers

function-decl-parameters (function)

Writers

(setf function-decl-parameters) (function)

Slot: body
Type

(or (cons js-parser:source-element) (cons null) null)

Readers

function-decl-body (function)

Writers

(setf function-decl-body) (function)

Structure: function-expression ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct subclasses
Direct methods
Direct slots
Slot: name
Type

(or string null)

Readers

function-expression-name (function)

Writers

(setf function-expression-name) (function)

Slot: parameters
Type

(or (cons string) null)

Readers

function-expression-parameters (function)

Writers

(setf function-expression-parameters) (function)

Slot: body
Type

(or (cons js-parser:source-element) null)

Readers

function-expression-body (function)

Writers

(setf function-expression-body) (function)

Structure: identifier ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: name
Type

string

Readers

identifier-name (function)

Writers

(setf identifier-name) (function)

Structure: if-statement ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods
Direct slots
Slot: condition
Type

js-parser:expression

Readers

if-statement-condition (function)

Writers

(setf if-statement-condition) (function)

Slot: then-statement
Type

(or js-parser:source-element null)

Readers

if-statement-then-statement (function)

Writers

(setf if-statement-then-statement) (function)

Slot: else-statement
Type

(or js-parser:source-element null)

Readers

if-statement-else-statement (function)

Writers

(setf if-statement-else-statement) (function)

Structure: new-expr ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods
Direct slots
Slot: constructor
Type

js-parser:expression

Readers

new-expr-constructor (function)

Writers

(setf new-expr-constructor) (function)

Slot: args
Type

(or (cons js-parser:source-element) null)

Readers

new-expr-args (function)

Writers

(setf new-expr-args) (function)

Structure: numeric-literal ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: value
Type

number

Readers

numeric-literal-value (function)

Writers

(setf numeric-literal-value) (function)

Structure: object-literal ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods
Direct slots
Slot: properties
Type

list

Readers

object-literal-properties (function)

Writers

(setf object-literal-properties) (function)

Structure: property-access ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods
Direct slots
Slot: target
Type

js-parser:source-element

Readers

property-access-target (function)

Writers

(setf property-access-target) (function)

Slot: field
Type

js-parser:source-element

Readers

property-access-field (function)

Writers

(setf property-access-field) (function)

Structure: re-literal ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: pattern
Readers

re-literal-pattern (function)

Writers

(setf re-literal-pattern) (function)

Slot: options
Readers

re-literal-options (function)

Writers

(setf re-literal-options) (function)

Structure: return-statement ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: arg
Type

(or js-parser:source-element null)

Readers

return-statement-arg (function)

Writers

(setf return-statement-arg) (function)

Structure: source-element ()

A common base type for all source elements

Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

structure-object (structure)

Direct subclasses
Direct methods
Direct slots
Slot: label
Type

(or string null)

Readers

source-element-label (function)

Writers

(setf source-element-label) (function)

Slot: start
Type

(or number null)

Readers

source-element-start (function)

Writers

(setf source-element-start) (function)

Slot: end
Type

(or number null)

Readers

source-element-end (function)

Writers

(setf source-element-end) (function)

Structure: special-value ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: symbol
Type

symbol

Readers

special-value-symbol (function)

Writers

(setf special-value-symbol) (function)

Structure: statement-block ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: statements
Type

(or (cons js-parser:source-element) null)

Readers

statement-block-statements (function)

Writers

(setf statement-block-statements) (function)

Structure: string-literal ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: value
Type

string

Readers

string-literal-value (function)

Writers

(setf string-literal-value) (function)

Structure: switch ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: value
Type

js-parser:expression

Readers

switch-value (function)

Writers

(setf switch-value) (function)

Slot: clauses
Type

list

Readers

switch-clauses (function)

Writers

(setf switch-clauses) (function)

Structure: throw-statement ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: value
Type

(or js-parser:expression null)

Readers

throw-statement-value (function)

Writers

(setf throw-statement-value) (function)

Slot: target
Type

(or js-parser:expression null)

Readers

throw-statement-target (function)

Writers

(setf throw-statement-target) (function)

Structure: try ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods
Direct slots
Slot: body
Type

(or (cons js-parser:source-element) null)

Readers

try-body (function)

Writers

(setf try-body) (function)

Slot: catch-clause
Type

(or js-parser:catch-clause null)

Readers

try-catch-clause (function)

Writers

(setf try-catch-clause) (function)

Slot: finally-clause
Type

(or js-parser:finally-clause null)

Readers

try-finally-clause (function)

Writers

(setf try-finally-clause) (function)

Structure: unary-operator ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

expression (structure)

Direct methods
Direct slots
Slot: op-symbol
Type

symbol

Readers

unary-operator-op-symbol (function)

Writers

(setf unary-operator-op-symbol) (function)

Slot: arg
Type

js-parser:source-element

Readers

unary-operator-arg (function)

Writers

(setf unary-operator-arg) (function)

Structure: var-decl ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: name
Type

string

Readers

var-decl-name (function)

Writers

(setf var-decl-name) (function)

Slot: initializer
Type

(or js-parser:expression null)

Readers

var-decl-initializer (function)

Writers

(setf var-decl-initializer) (function)

Structure: var-decl-statement ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: var-decls
Type

(cons js-parser:var-decl)

Readers

var-decl-statement-var-decls (function)

Writers

(setf var-decl-statement-var-decls) (function)

Structure: while ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods
Direct slots
Slot: condition
Type

js-parser:expression

Readers

while-condition (function)

Writers

(setf while-condition) (function)

Slot: body
Type

(or js-parser:source-element null)

Readers

while-body (function)

Writers

(setf while-body) (function)

Structure: with ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods
Direct slots
Slot: scope-object
Type

js-parser:expression

Readers

with-scope-object (function)

Writers

(setf with-scope-object) (function)

Slot: body
Type

js-parser:source-element

Readers

with-body (function)

Writers

(setf with-body) (function)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *constructor-cache*

Map from structure-type symbol to copy-function symbol

Package

js-parser

Source

source-transformations.lisp (file)

Special Variable: *consume-token-goal*
Package

js-parser

Source

lex-javascript.lisp (file)

Special Variable: *current-filename*

The name of the file currently being parsed

Package

js-parser

Source

parse-javascript.lisp (file)

Special Variable: *in-local-scope*

T when the lexical scope is currently inside a function decl, NIL when the lexical scope is currently the global scope

Package

js-parser

Source

source-transformations.lisp (file)

Special Variable: *items-closure-hash-threshold*

The number of elements when items-closure switches to using a hashtable.

Package

jsyacc

Source

jsyacc.lisp (file)

Special Variable: *keyword-symbols*

A list of the keyword symbols.

Package

js-parser

Source

lex-javascript.lisp (file)

Special Variable: *muffle-conflicts*

When T, yacc warnings about Shift/Reduce and Reduce/Reduce conflicts will be muffled. When NIL, all such conflicts will be reported.
When non-NIL, non-T, a single summary warning will be reported when conflicts exist.

This value should be set to NIL or non-T during grammar
development/debugging (so that we find out about the conflicts), but T
at all other times (so that SBCL won’t drop into the debugger when
we’re trying to load parse-javascript.lisp).

Package

js-parser-system

Source

js-parser.asd

Special Variable: *operator-tokens*

These are operators (as distinct from general tokens) that will be built into a special regular expression.

We can’t just use the keys from *symbols-to-tokens*, because the
order that the tokens appear in this list is significant. Specifically, each ’long’ operator must occur before any operator that it is a supersequence of. Eg, ’<<<’ must occur before ’<<’, which must occur before ’<’. ’!=’ must occur before both ’!’ and ’=’.

Package

js-parser

Source

lex-javascript.lisp (file)

Special Variable: *restricted-tokens*

Tokens that participate in ’restricted productions’. Value should be either :PRE or :POST. For each of these tokens, the lexer will emit either a :NO-LINE-TERMINATOR or a :LINE-TERMINATOR token depending upon whether the token was preceded/followed by a line-break.

Package

js-parser

Source

lex-javascript.lisp (file)

Special Variable: *tokens-to-symbols*

Map from string to token symbol.
Every symbol that the tokenizer will return is in this map.

Package

js-parser

Source

lex-javascript.lisp (file)

Special Variable: floating-re

Regular expression for recognizing floating-point literals

Package

js-parser

Source

lex-javascript.lisp (file)

Special Variable: integer-re

Regular expression for recognizing integer literals

Package

js-parser

Source

lex-javascript.lisp (file)

Special Variable: javascript-script
Package

js-parser

Source

parse-javascript.lisp (file)

Special Variable: operator-re

Regular expression for recognizing operators

Package

js-parser

Source

lex-javascript.lisp (file)

Special Variable: regexp-re

(Lisp) regular expression for recognizing (Javascript) regular expression literals

Package

js-parser

Source

lex-javascript.lisp (file)

Special Variable: string-re

Regular expression for recognizing string literals

Package

js-parser

Source

lex-javascript.lisp (file)

Special Variable: undefined-id

Contains the ‘undefined‘ identifier

Package

js-parser

Source

parse-javascript.lisp (file)

Special Variable: whitespace-and-comments-re

Regular expression for consuming (and thereby skipping) whitespace and comments

Package

js-parser

Source

lex-javascript.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Macros

Macro: aif TEST-FORM THEN-FORM &optional ELSE-FORM

Anaphoric IF expression; binds IT.

Package

js-parser

Source

general-utilities.lisp (file)

Macro: awhen TEST-FORM &body BODY

Anaphoric WHEN expression; binds IT.

Package

js-parser

Source

general-utilities.lisp (file)

Macro: bind-with-backchannels (&rest BINDINGS) FORM &body BODY
Package

js-parser

Source

general-utilities.lisp (file)

Macro: defelement NAME &rest SLOTS
Package

js-parser

Source

js-source-model.lisp (file)

Macro: defparser PARSER-NAME STARTING-PRODUCTION &body PRODUCTIONS

This macro emulates the Lispworks parsergenerator’s defparser macro, but instead creates output for CL-YACC

Package

js-parser

Source

parse-javascript-yacc.lisp (file)

Macro: deftoken SYMBOL &optional KEY TOKEN-TYPE

Add a token’s symbol and possibly string to the appropriate lookups.

Different actions will be taken depending upon the TOKEN-TYPE: OPERATOR-TOKENs are infix operators, which are recognized as atomic tokens regardless of whether they are surrounded by whitespace (unlike identifier tokens, for example).
KEYWORDs are reserved strings that can never be used as an identifier. OPERATIONs will never be returned by the lexer, but they are used in the source model in the same place as tokens (ie, in :op-symbol slots), so they are treated as tokens for now.

Package

js-parser

Source

lex-javascript.lisp (file)

Macro: forbid-transformation-elements XFORM ELM-TYPE-LIST

Generate DEFMETHOD forms that throw an error if the transformation specified in XFORM is applied to any of the element types in ELM-TYPE-LIST

Package

js-parser

Source

source-transformations.lisp (file)

Macro: in-local-scope &body BODY

Execute BODY with *IN-LOCAL-SCOPE* bound to T

Package

js-parser

Source

source-transformations.lisp (file)

Macro: re-cond (STRING &key START) &rest CLAUSES

(re-cond (STRING :start START) (REGEXP FORMS*)*
If REGEXP matches STRING, then %S, %E, %SUB-S, and %SUB-E will be bound during execution of FORMS

Package

js-parser

Source

lexer-macros.lisp (file)

Macro: when-let (BIND-VAR TEST-FORM) &body BODY

Anaphoric WHEN expression that allows the caller to specify the name of the bound variable

Package

js-parser

Source

general-utilities.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.3 Functions

Function: %copy-item INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: %make-grammar &key (NAME NAME) (TERMINALS TERMINALS) (PRECEDENCE PRECEDENCE) (PRODUCTIONS PRODUCTIONS) (%SYMBOLS %SYMBOLS) (DERIVES-EPSILON DERIVES-EPSILON) (DERIVES-FIRST DERIVES-FIRST) (DERIVES-FIRST-TERMINAL DERIVES-FIRST-TERMINAL)
Package

jsyacc

Source

jsyacc.lisp (file)

Function: %make-kernel ITEMS
Package

jsyacc

Source

jsyacc.lisp (file)

Function: %make-parser STATES GOTO ACTION
Package

jsyacc

Source

jsyacc.lisp (file)

Function: accept-action-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: action-equal-p A1 A2
Package

jsyacc

Source

jsyacc.lisp (file)

Function: action-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: add-handler-end INSTANCE
Function: (setf add-handler-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: add-handler-handler INSTANCE
Function: (setf add-handler-handler) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: add-handler-label INSTANCE
Function: (setf add-handler-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: add-handler-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: add-handler-start INSTANCE
Function: (setf add-handler-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: add-handler-thunk-body INSTANCE
Function: (setf add-handler-thunk-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: backchannel-signal CHANNEL VALUE

Signals VALUE on backchannel CHANNEL. Returns T if the message was received.

Package

js-parser

Source

general-utilities.lisp (file)

Function: call-expression-p ELM

Return non-NIL if ELM is a CallExpression, or NIL otherwise.

Package

js-parser

Source

js-source-model.lisp (file)

Function: clear-lr1-collection COLLECTION
Package

jsyacc

Source

jsyacc.lisp (file)

Function: coerce-token LEXER TERMINAL

Force LEXER to interpret the next token as TERMINAL. An error will be raised if that’s not actually possible.

Package

js-parser

Source

lex-javascript.lisp (file)

Function: combine-first F1 S GRAMMAR

FIRST(s1.s) where f1=FIRST(s1).

Package

jsyacc

Source

jsyacc.lisp (file)

Function: combine-statements &rest ELM-ARGUMENTS

Combine ELM-ARGUMENTS into a single list, stripping out statement-blocks if necessary

Package

js-parser

Source

js-source-model.lisp (file)

Function: compute-all-lookaheads KERNELS GRAMMAR

Compute the LR(1) lookaheads for all the collections in KERNELS.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: compute-goto KERNEL SYMBOL GRAMMAR

Compute the kernel of goto(KERNEL, SYMBOL)

Package

jsyacc

Source

jsyacc.lisp (file)

Function: compute-kernels GRAMMAR

Compute the set collections of LR(0) items for GRAMMAR.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: compute-lookaheads KERNEL GRAMMAR &optional PROPAGATE-ONLY

Compute the LR(1) lookaheads for all items in KERNEL. If PROPAGATE-ONLY is true, ignore spontaneous generation.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: compute-parsing-tables KERNELS GRAMMAR &key MUFFLE-CONFLICTS

Compute the parsing tables for grammar GRAMMAR and transitions KERNELS. PRECEDENCE is as in FIND-PRECEDENCE. MUFFLE-WARNINGS is one of NIL, T, :SOME or a list of the form (sr rr).

Package

jsyacc

Source

jsyacc.lisp (file)

Function: consume-token LEXER &optional GOAL

Reads the next token from LEXER’s source text (where ’next’ is determined by
the value of LEXER’s cursor).

GOAL is either :regex-goal or :divide-goal, which corresponds to the description of the 2 possible ’goal symbols’ described in 7.0 of the ECMAScript spec. If GOAL is :re-input, a regular expression literal may be lexed. Otherwise, regex literals are parsed as divisions.

The cursor is assumed to point to a non-whitespace
character on entry; on exit points to the first character after the consumed token. Returns a token structure. The token’s terminal will be NIL on end of input.

Package

js-parser

Source

lex-javascript.lisp (file)

Function: consume-whitespace LEXER

Consumes whitespace and comments. Lexer’s cursor is updated to the next non-whitespace character, and its ENCOUNTERED-LINE-TERMINATOR slot is set based upon whether or not the skipped whitespace included a newline. Returns non-NIL if line-terminators were encountered.

Package

js-parser

Source

lex-javascript.lisp (file)

Function: continuation-call-args INSTANCE
Function: (setf continuation-call-args) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-call-end INSTANCE
Function: (setf continuation-call-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-call-fn INSTANCE
Function: (setf continuation-call-fn) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-call-label INSTANCE
Function: (setf continuation-call-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-call-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-call-start INSTANCE
Function: (setf continuation-call-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-function-body INSTANCE
Function: (setf continuation-function-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-function-end INSTANCE
Function: (setf continuation-function-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-function-label INSTANCE
Function: (setf continuation-function-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-function-name INSTANCE
Function: (setf continuation-function-name) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-function-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-function-parameters INSTANCE
Function: (setf continuation-function-parameters) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: continuation-function-start INSTANCE
Function: (setf continuation-function-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-accept-action INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-action INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-add-handler INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-array-literal INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-binary-operator INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-break-statement INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-case-clause INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-catch-clause INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-comma-expr INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-conditional INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-continuation-call INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-continuation-function INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-continue-statement INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-default-clause INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-do-statement INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-error-action INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-expression INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-finally-clause INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-fn-call INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-for INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-for-in INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-function-decl INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-function-expression INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-goto INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-grammar INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-identifier INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-if-statement INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-import-decl INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-kernel INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-lr0-item INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-lr1-item INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-new-expr INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-numeric-literal INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-object-literal INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-parser INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-production INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-property-access INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-re-literal INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-reduce-action INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-remove-handler INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-resume-statement INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-return-statement INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-shift-action INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: copy-source-element INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-special-value INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-statement-block INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-string-literal INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-suspend-statement INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-switch INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-throw-statement INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-thunk-function INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-token INSTANCE
Package

js-parser

Source

lex-javascript.lisp (file)

Function: copy-try INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-unary-operator INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-var-decl INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-var-decl-statement INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-while INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: copy-with INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: derives-epsilon SYMBOL GRAMMAR &optional SEEN

True if symbol derives epsilon.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: derives-epsilon* SYMBOL GRAMMAR &optional SEEN

Unmemoised version of DERIVES-EPSILON.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: derives-first C GRAMMAR &optional SEEN

The list of symbols A such that C rm->* A.eta for some eta.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: derives-first-terminal C GRAMMAR &optional SEEN

The list of terminals a such that C rm->* a.eta, last non-epsilon.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: element-end ELEMENT

Returns the end position of source-element or token ELEMENT.

Package

js-parser

Source

parse-javascript.lisp (file)

Function: element-start ELEMENT

Returns the start position of source-element or token ELEMENT.

Package

js-parser

Source

parse-javascript.lisp (file)

Function: error-action-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: escape-regexp RE-STRING
Package

js-parser

Source

lex-javascript.lisp (file)

Function: expand-hashtable-to-values HASHTABLE

Returns a list of all the values stored in a hashtable.

Package

js-parser

Source

parse-javascript-yacc.lisp (file)

Function: find-goto KERNEL SYMBOL
Package

jsyacc

Source

jsyacc.lisp (file)

Function: find-precedence OP PRECEDENCE

Return the tail of PRECEDENCE starting with the element containing OP. PRECEDENCE is a list of elements of the form (KEYWORD . (op...)).

Package

jsyacc

Source

jsyacc.lisp (file)

Function: find-single-terminal S GRAMMAR

Return the only terminal in S, or NIL if none or multiple.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: first-terminals S GRAMMAR

FIRST(s) without epsilon.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: generate-productions PRODUCTIONS

Used by defparser macro. Take the lispworks list of productions and convert them into CL-YACC versions

Package

js-parser

Source

parse-javascript-yacc.lisp (file)

Function: generate-rules-with-optional RULE-SPEC &optional MASK

Accepts a PARSERGEN rulespec and transforms it by treating each symbol that begins with a #\? character as being optional. The output is a list of one or more rules that exhaust all the present/absent possibilities. This is an internal utility for generating rules for the different grammar rules that are specified with wildcards.

Package

js-parser

Source

parse-javascript.lisp (file)

Function: goto-equal-p G1 G2
Package

jsyacc

Source

jsyacc.lisp (file)

Function: goto-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: goto-symbol INSTANCE
Function: (setf goto-symbol) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: goto-target INSTANCE
Function: (setf goto-target) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-%symbols INSTANCE
Function: (setf grammar-%symbols) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-derives-epsilon INSTANCE
Function: (setf grammar-derives-epsilon) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-derives-first INSTANCE
Function: (setf grammar-derives-first) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-derives-first-terminal INSTANCE
Function: (setf grammar-derives-first-terminal) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-discard-memos GRAMMAR
Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-epsilon-productions GRAMMAR
Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-name INSTANCE
Function: (setf grammar-name) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-precedence INSTANCE
Function: (setf grammar-precedence) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-productions INSTANCE
Function: (setf grammar-productions) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-symbols GRAMMAR

The set of symbols (both terminal and nonterminal) of GRAMMAR.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: grammar-terminals INSTANCE
Function: (setf grammar-terminals) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: handle-conflict A1 A2 GRAMMAR ACTION-PRODUCTIONS ID S &optional MUFFLE-CONFLICTS

Decide what to do with a conflict between A1 and A2 in state ID on symbol S. Returns three actions: the chosen action, the number of new sr and rr.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: idempotent-expression-p ELM

Return true if ELM is an ’idempotent expression’, ie one which it is safe to add repetitions of

Package

js-parser

Source

js-source-model.lisp (file)

Function: import-decl-end INSTANCE
Function: (setf import-decl-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: import-decl-label INSTANCE
Function: (setf import-decl-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: import-decl-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: import-decl-start INSTANCE
Function: (setf import-decl-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: import-decl-type-symbol INSTANCE
Function: (setf import-decl-type-symbol) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: import-decl-uripath INSTANCE
Function: (setf import-decl-uripath) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: item-action ITEM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-action-form ITEM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-derives ITEM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-dot-left ITEM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-dot-right ITEM &optional N
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-dot-right-p ITEM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-dot-symbol ITEM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-equal-p I1 I2

Equality predicate for LR(0) items.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-lookahead INSTANCE
Function: (setf item-lookahead) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-lookaheads INSTANCE
Function: (setf item-lookaheads) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-lr1-equal-p I1 I2

Equality predicate for LR(1) items.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-lr1-hash-value ITEM

Returns an object suitable for keying associations of LR1-items.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-position INSTANCE
Function: (setf item-position) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-production INSTANCE
Function: (setf item-production) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-set-equal-p C1 C2

Equality predicate for sorted sets of LR(0) items.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-shift ITEM &optional N
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item-symbol ITEM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: item< I1 I2

Total strict order on LR(0) items.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: items-closure ITEMS GRAMMAR

Compute the closure of a set of LR(1) items.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: kernel-gotos INSTANCE
Function: (setf kernel-gotos) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: kernel-id INSTANCE
Function: (setf kernel-id) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: kernel-item KERNEL

The item in a singleton set of items.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: kernel-items INSTANCE
Function: (setf kernel-items) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: kernel-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: line-terminator-p C

Return non-NIL if C is a line-terminator character according to the Javascript spec

Package

js-parser

Source

lex-javascript.lisp (file)

Function: lr0-item-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: lr1-add ITEM COLLECTION

Add ITEM to COLLECTION.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: lr1-add-collection ITEMS COLLECTION

Add all the elements of ITEMS to COLLECTION.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: lr1-collection-empty-p COLLECTION
Package

jsyacc

Source

jsyacc.lisp (file)

Function: lr1-find ITEM COLLECTION

Find an LR(1) item equal to ITEM in COLLECTION, or NIL.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: lr1-item-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: lr1-item-shift ITEM &optional N
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-accept-action &key
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-continuation-call &key (LABEL LABEL) (START START) (END END) (FN FN) (ARGS ARGS)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-continuation-function &key (LABEL LABEL) (START START) (END END) (NAME NAME) (PARAMETERS PARAMETERS) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-error-action &key
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-expression &key (LABEL LABEL) (START START) (END END)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-goto SYMBOL TARGET
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-hash-table-from-lr1-list L
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-item PRODUCTION POSITION
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-kernel ITEMS &optional KERNELS
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-lexer-function LEXER

Returns a function of 0 arguments that calls NEXT-TOKEN on LEXER whenever it is called. This is normally the function that gets passed into a parser.

Package

js-parser

Source

lex-javascript.lisp (file)

Function: make-lr1-collection &optional SAME-KIND-AS
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-lr1-item PRODUCTION POSITION LOOKAHEAD
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-reduce-action SYMBOL LENGTH &key ACTION ACTION-FORM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-shift-action STATE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: make-thunk-function &key (LABEL LABEL) (START START) (END END) (NAME NAME) (PARAMETERS PARAMETERS) (BODY BODY)
Package

js-parser

Source

js-source-model.lisp (file)

Function: make-token &key (TERMINAL TERMINAL) (VALUE VALUE) (START START) (END END)
Package

js-parser

Source

lex-javascript.lisp (file)

Function: make-var-init VAR-NAME INIT-VALUE

Create a VAR-DECL-STATEMENT that initializes a variable named VAR-NAME to INIT-VALUE

Package

js-parser

Source

js-source-model.lisp (file)

Function: map-lr1-collection F COLLECTION

Apply F to all elements of COLLECTION.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: maptree FN TREE

MAPTREE maps a function over a tree of cons cells.
If TREE is NIL, returns NIL.
If TREE is a cons cell, recursively calls MAPTREE on the CAR and CDR and returns a new cons cell whose CAR and CDR are the results.
Otherwise, returns the result of applying FN to TREE.

Package

js-parser

Source

general-utilities.lisp (file)

Function: memq ITEM LIST

MEMBER :TEST #’EQ

Package

jsyacc

Source

jsyacc.lisp (file)

Function: next-token LEXER

Returns a token structure containing the next token in the lexing operation represented by LEXER. This token will have a terminal of NIL at end of stream. The next token will be fetched from the unget-stack if that stack is non-empty.

Package

js-parser

Source

lex-javascript.lisp (file)

Function: number-kernels KERNELS

Set a unique ID for all kernels in KERNELS.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: parse-file PATH

Load the file at PATH and parse it into a js/jw source model

Package

js-parser

Source

parse-javascript.lisp (file)

Function: parse-grammar FORMS
Package

jsyacc

Source

jsyacc.lisp (file)

Function: parse-javascript-integer INTEGER-STR &key START END

Parse integer literals, taking account of 0x and 0 radix-specifiers

Package

js-parser

Source

lex-javascript.lisp (file)

Function: parse-production FORM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: parser-action INSTANCE
Function: (setf parser-action) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: parser-goto INSTANCE
Function: (setf parser-goto) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: parser-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: parser-states INSTANCE
Function: (setf parser-states) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: pathnames-equal PATH1 PATH2

Return non-NIL if PATH1 and PATH2 are equivalent. This function avoids some of the
complexity that pathnames can entail by comparing the namestrings of the two paths
rather than the paths themselves. That way we don’t have to worry about spurious distinctions between :UNSPECIFIED and NIL, :NEWEST and NIL and some actual version number, etc.

Package

js-parser

Source

general-utilities.lisp (file)

Function: position-to-line/column TEXT INDEX

Returns a cons cell containing the 1-based row and column for the character at INDEX in TEXT.

Package

js-parser

Source

lex-javascript.lisp (file)

Function: postpend LIST-ARG ATOM-ARG

Appends a list containing ATOM-ARG to LIST-ARG. eg: (POSTPEND ’(1 2) 3) ===> ’(1 2 3)

Package

js-parser

Source

general-utilities.lisp (file)

Function: prefix-p STRING PREFIX

return: whether prefix is a prefix of the string.

Package

js-parser

Source

general-utilities.lisp (file)

Function: print-action A S D
Package

jsyacc

Source

jsyacc.lisp (file)

Function: print-derives-epsilon GRAMMAR &optional STREAM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: print-first-terminals GRAMMAR &optional STREAM

Print FIRST (without epsilon) for all symbols of GRAMMAR.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: print-goto-graph KERNELS &optional STREAM

Print the goto graph defined by KERNELS.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: print-item I S D
Package

jsyacc

Source

jsyacc.lisp (file)

Function: print-kernel K S D
Package

jsyacc

Source

jsyacc.lisp (file)

Function: print-production P S D
Package

jsyacc

Source

jsyacc.lisp (file)

Function: print-states KERNELS LOOKAHEADS &optional STREAM
Package

jsyacc

Source

jsyacc.lisp (file)

Function: production-action INSTANCE
Function: (setf production-action) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: production-action-form INSTANCE
Function: (setf production-action-form) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: production-derives INSTANCE
Function: (setf production-derives) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: production-equal-p P1 P2

Equality predicate for productions within a single grammar

Package

jsyacc

Source

jsyacc.lisp (file)

Function: production-id INSTANCE
Function: (setf production-id) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: production-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: production-symbol INSTANCE
Function: (setf production-symbol) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: production< P1 P2

Total order on productions within a single grammar

Package

jsyacc

Source

jsyacc.lisp (file)

Function: push-token LEXER TOKEN &optional ENCOUNTERED-LINE-TERMINATOR

Push a token onto the top of LEXER’s unget stack. The next token fetched by NEXT-TOKEN will be the pushed token. The state of the ENCOUNTERED-LINE-TERMINATOR flag is also saved and will be restored by the next NEXT-TOKEN call.

Package

js-parser

Source

lex-javascript.lisp (file)

Function: re-cond-clause STRING START BLOCK-NAME CLAUSE
Package

js-parser

Source

lexer-macros.lisp (file)

Function: read-asdf-component-text COMPONENT-PATH

Returns the contents of a file that is a component of a currently-loaded asdf system. COMPONENT-PATH is a path describing the location of the component to read. It should have at least 2 elements.
The first element is a symbol naming a system.
The last element is a string naming a component.
There may be intermediate strings naming intermediate modules. Eg:

(:JS-ON-CL-TESTS "tests" "test-cps-transformation")

names the test-cps-transformation component, which is part of the tests module, which is part of the :JS-ON-CL-TESTS system.

Package

js-parser

Source

general-utilities.lisp (file)

Function: read-entire-file PATH

Reads the entire contents of the file located at PATH and returns it as a string

Package

js-parser

Source

general-utilities.lisp (file)

Function: reduce-action-action INSTANCE
Function: (setf reduce-action-action) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: reduce-action-action-form INSTANCE
Function: (setf reduce-action-action-form) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: reduce-action-length INSTANCE
Function: (setf reduce-action-length) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: reduce-action-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: reduce-action-symbol INSTANCE
Function: (setf reduce-action-symbol) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: relative-first S A GRAMMAR &optional SEEN

Union of FIRST(eta) for all the eta s.t. S rm->* Aeta.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: relative-first-sequence S A GRAMMAR &optional SEEN

Sequence version of RELATIVE-FIRST.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: remove-handler-end INSTANCE
Function: (setf remove-handler-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: remove-handler-handler INSTANCE
Function: (setf remove-handler-handler) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: remove-handler-label INSTANCE
Function: (setf remove-handler-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: remove-handler-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: remove-handler-start INSTANCE
Function: (setf remove-handler-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: remove-handler-thunk-body INSTANCE
Function: (setf remove-handler-thunk-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: replace-special-variables LEAF

Replace $$n with (token-value (nth n-1 expr)) and $n with (nth n-1 expr)

Package

js-parser

Source

parse-javascript-yacc.lisp (file)

Function: required-argument ()
Package

jsyacc

Source

jsyacc.lisp (file)

Function: resume-statement-arg INSTANCE
Function: (setf resume-statement-arg) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: resume-statement-end INSTANCE
Function: (setf resume-statement-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: resume-statement-label INSTANCE
Function: (setf resume-statement-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: resume-statement-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: resume-statement-start INSTANCE
Function: (setf resume-statement-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: resume-statement-target INSTANCE
Function: (setf resume-statement-target) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: sequence-derives-epsilon SEQUENCE GRAMMAR

Sequence version of DERIVES-EPSILON*.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: sequence-derives-first SEQUENCE GRAMMAR &optional SEEN

Sequence version of DERIVES-FIRST.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: sequence-derives-first-terminal SEQUENCE GRAMMAR &optional SEEN

Sequence version of DERIVES-FIRST-TERMINAL.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: sequence-first S GRAMMAR

FIRST(s).

Package

jsyacc

Source

jsyacc.lisp (file)

Function: sequence-first-terminals S GRAMMAR

Sequence version of FIRST-TERMINALS.

Package

jsyacc

Source

jsyacc.lisp (file)

Function: set-cursor LEXER NEW-POS

Sets the cursor of the lexer to the position specified by NEW-POS

Package

js-parser

Source

lex-javascript.lisp (file)

Function: shift-action-p OBJECT
Package

jsyacc

Source

jsyacc.lisp (file)

Function: shift-action-state INSTANCE
Function: (setf shift-action-state) VALUE INSTANCE
Package

jsyacc

Source

jsyacc.lisp (file)

Function: single-statement &rest ELM-ARGUMENTS

Takes a list of source elements and distills them into a single statement. If there is only one statement once all the lists have been flattened and the statement-blocks pulled apart, then returns that single statement. Otherwise, wraps the entire flattened sequence in a statement-block.

Package

js-parser

Source

js-source-model.lisp (file)

Function: suspend-statement-end INSTANCE
Function: (setf suspend-statement-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: suspend-statement-label INSTANCE
Function: (setf suspend-statement-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: suspend-statement-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: suspend-statement-start INSTANCE
Function: (setf suspend-statement-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: terminal-p SYMBOL GRAMMAR
Package

jsyacc

Source

jsyacc.lisp (file)

Function: thunk-function-body INSTANCE
Function: (setf thunk-function-body) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: thunk-function-end INSTANCE
Function: (setf thunk-function-end) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: thunk-function-label INSTANCE
Function: (setf thunk-function-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: thunk-function-name INSTANCE
Function: (setf thunk-function-name) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: thunk-function-p OBJECT
Package

js-parser

Source

js-source-model.lisp (file)

Function: thunk-function-parameters INSTANCE
Function: (setf thunk-function-parameters) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: thunk-function-start INSTANCE
Function: (setf thunk-function-start) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)

Function: token-end INSTANCE
Function: (setf token-end) VALUE INSTANCE
Package

js-parser

Source

lex-javascript.lisp (file)

Function: token-p OBJECT
Package

js-parser

Source

lex-javascript.lisp (file)

Function: token-start INSTANCE
Function: (setf token-start) VALUE INSTANCE
Package

js-parser

Source

lex-javascript.lisp (file)

Function: token-terminal INSTANCE
Function: (setf token-terminal) VALUE INSTANCE
Package

js-parser

Source

lex-javascript.lisp (file)

Function: token-value INSTANCE
Function: (setf token-value) VALUE INSTANCE
Package

js-parser

Source

lex-javascript.lisp (file)

Function: unescape-regexp RE-STRING
Package

js-parser

Source

lex-javascript.lisp (file)

Function: unescape-string-literal-value VALUE

Given the inside of a string literal with escaped characters like ’, newlines, etc. returns a decoded value.

Package

js-parser

Source

lex-javascript.lisp (file)

Function: with-label INSTANCE
Function: (setf with-label) VALUE INSTANCE
Package

js-parser

Source

js-source-model.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.4 Generic functions

Generic Function: channel-name CONDITION
Generic Function: (setf channel-name) NEW-VALUE CONDITION
Package

js-parser

Methods
Method: channel-name (CONDITION backchannel-message)
Method: (setf channel-name) NEW-VALUE (CONDITION backchannel-message)
Source

general-utilities.lisp (file)

Generic Function: collect-in-scope ELM TARGET-TYPE

Finds and returns a list of all elements of TARGET-TYPE in the same scope as ELM. Does not recurse into function-decl or function-expression elements. So for example, searching for function-decls in this code:

var x = 10;
function foo(x) { function bar(y) { return 10; } return bar(x); }

FOO would be returned but BAR would not, since the decl of BAR is in an innermore scope (namely, FOO’s body).

Package

js-parser

Source

source-transformations.lisp (file)

Methods
Method: collect-in-scope ELM TARGET-TYPE around
Method: collect-in-scope (ELM object-literal) TARGET-TYPE
Method: collect-in-scope (ELM function-expression) TARGET-TYPE
Method: collect-in-scope (ELM function-decl) TARGET-TYPE
Method: collect-in-scope (ELM source-element) TARGET-TYPE
Method: collect-in-scope (ELM-LIST list) TARGET-TYPE
Method: collect-in-scope ELM TARGET-TYPE
Generic Function: column CONDITION
Package

js-parser

Methods
Method: column (CONDITION positioned-condition)
Source

conditions.lisp (file)

Generic Function: conflict-summary-warning-reduce-reduce CONDITION
Package

jsyacc

Methods
Method: conflict-summary-warning-reduce-reduce (CONDITION conflict-summary-warning)
Source

jsyacc.lisp (file)

Generic Function: conflict-summary-warning-shift-reduce CONDITION
Package

jsyacc

Methods
Method: conflict-summary-warning-shift-reduce (CONDITION conflict-summary-warning)
Source

jsyacc.lisp (file)

Generic Function: conflict-warning-kind CONDITION
Package

jsyacc

Methods
Method: conflict-warning-kind (CONDITION conflict-warning)
Source

jsyacc.lisp (file)

Generic Function: conflict-warning-state CONDITION
Package

jsyacc

Methods
Method: conflict-warning-state (CONDITION conflict-warning)
Source

jsyacc.lisp (file)

Generic Function: conflict-warning-terminal CONDITION
Package

jsyacc

Methods
Method: conflict-warning-terminal (CONDITION conflict-warning)
Source

jsyacc.lisp (file)

Generic Function: cursor OBJECT
Generic Function: (setf cursor) NEW-VALUE OBJECT
Package

js-parser

Methods
Method: cursor (JAVASCRIPT-LEXER javascript-lexer)

automatically generated reader method

Source

lex-javascript.lisp (file)

Method: (setf cursor) NEW-VALUE (JAVASCRIPT-LEXER javascript-lexer)

automatically generated writer method

Source

lex-javascript.lisp (file)

Generic Function: elm-associativity OPERATOR-OR-ELM

Returns either :LEFT, :RIGHT, or NIL to indicate the associativity of the operator represented by OP-SYMBOL-OR-ELM (representing left-, right-, and no-associativity respectively.

Package

js-parser

Source

js-source-model.lisp (file)

Methods
Method: elm-associativity (OPERATOR-OR-ELM new-expr)
Method: elm-associativity (OPERATOR-OR-ELM property-access)
Method: elm-associativity (OPERATOR-OR-ELM fn-call)
Method: elm-associativity (OPERATOR-OR-ELM binary-operator)
Method: elm-associativity OPERATOR-OR-ELM
Generic Function: elm-precedence ELM

Returns an integer specifying the precedence of the source element ELM. Smaller numbers represent higher precedence. The precedence numbers have no significance except relative to each other.

Package

js-parser

Source

js-source-model.lisp (file)

Methods
Method: elm-precedence (ELM comma-expr)
Method: elm-precedence (ELM conditional)
Method: elm-precedence (ELM binary-operator)
Method: elm-precedence (ELM unary-operator)
Method: elm-precedence (ELM function-expression)
Method: elm-precedence (ELM property-access)
Method: elm-precedence (ELM fn-call)
Method: elm-precedence (ELM new-expr)
Method: elm-precedence (ELM source-element)
Generic Function: encountered-line-terminator OBJECT
Generic Function: (setf encountered-line-terminator) NEW-VALUE OBJECT
Package

js-parser

Methods
Method: encountered-line-terminator (JAVASCRIPT-LEXER javascript-lexer)

automatically generated reader method

Source

lex-javascript.lisp (file)

Method: (setf encountered-line-terminator) NEW-VALUE (JAVASCRIPT-LEXER javascript-lexer)

automatically generated writer method

Source

lex-javascript.lisp (file)

Generic Function: expected-terminals CONDITION
Package

js-parser

Methods
Method: expected-terminals (CONDITION syntax-error)
Source

conditions.lisp (file)

Generic Function: filename CONDITION
Package

js-parser

Methods
Method: filename (CONDITION positioned-condition)
Source

conditions.lisp (file)

Generic Function: import-uripath CONDITION
Package

js-parser

Methods
Method: import-uripath (CONDITION missing-import)
Source

conditions.lisp (file)

Generic Function: message-value CONDITION
Generic Function: (setf message-value) NEW-VALUE CONDITION
Package

js-parser

Methods
Method: message-value (CONDITION backchannel-message)
Method: (setf message-value) NEW-VALUE (CONDITION backchannel-message)
Source

general-utilities.lisp (file)

Generic Function: parent-uripath CONDITION
Package

js-parser

Methods
Method: parent-uripath (CONDITION missing-import)
Source

conditions.lisp (file)

Generic Function: pos CONDITION
Package

js-parser

Methods
Method: pos (CONDITION positioned-condition)
Source

conditions.lisp (file)

Generic Function: row CONDITION
Package

js-parser

Methods
Method: row (CONDITION positioned-condition)
Source

conditions.lisp (file)

Generic Function: text OBJECT
Package

js-parser

Methods
Method: text (JAVASCRIPT-LEXER javascript-lexer)

automatically generated reader method

Source

lex-javascript.lisp (file)

Generic Function: token CONDITION
Package

js-parser

Methods
Method: token (CONDITION syntax-error)
Source

conditions.lisp (file)

Generic Function: transform XFORM ELM

Accepts a transformation name (symbol) and a source element, and returns a new source element that has been transformed in some way. Methods should /not/ perform destructive updates on the provided source-element.

Package

js-parser

Source

source-transformations.lisp (file)

Methods
Method: transform XFORM (ELM object-literal)
Method: transform XFORM (ELM try)
Method: transform XFORM (ELM with)
Method: transform XFORM (ELM for-in)
Method: transform XFORM (ELM for)
Method: transform XFORM (ELM do-statement)
Method: transform XFORM (ELM while)
Method: transform XFORM (ELM if-statement)
Method: transform XFORM (ELM-LIST list)
Method: transform XFORM (ELM source-element)
Method: transform XFORM ELM
Generic Function: unget-stack OBJECT
Generic Function: (setf unget-stack) NEW-VALUE OBJECT
Package

js-parser

Methods
Method: unget-stack (JAVASCRIPT-LEXER javascript-lexer)

automatically generated reader method

Source

lex-javascript.lisp (file)

Method: (setf unget-stack) NEW-VALUE (JAVASCRIPT-LEXER javascript-lexer)

automatically generated writer method

Source

lex-javascript.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.5 Conditions

Condition: backchannel-message ()

A condition that indicates that a function further down the call chain has a message to pass back. BACKCHANNEL-MESSAGE should never be directly instantiated or used; use BIND-WITH-BACKCHANNELS and BACKCHANNEL-SIGNAL instead.

Package

js-parser

Source

general-utilities.lisp (file)

Direct superclasses

condition (condition)

Direct methods
Direct slots
Slot: channel-name
Initargs

:channel-name

Readers

channel-name (generic function)

Writers

(setf channel-name) (generic function)

Slot: message-value
Initargs

:message-value

Readers

message-value (generic function)

Writers

(setf message-value) (generic function)

Condition: conflict-summary-warning ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

warning (condition)

Direct methods
Direct slots
Slot: shift-reduce
Initargs

:shift-reduce

Readers

conflict-summary-warning-shift-reduce (generic function)

Slot: reduce-reduce
Initargs

:reduce-reduce

Readers

conflict-summary-warning-reduce-reduce (generic function)

Condition: conflict-warning ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

simple-warning (condition)

Direct methods
Direct slots
Slot: kind
Initargs

:kind

Readers

conflict-warning-kind (generic function)

Slot: state
Initargs

:state

Readers

conflict-warning-state (generic function)

Slot: terminal
Initargs

:terminal

Readers

conflict-warning-terminal (generic function)

Condition: missing-import ()

Indicates that an import could not be located

Package

js-parser

Source

conditions.lisp (file)

Direct superclasses
Direct methods
Direct slots
Slot: parent-uripath
Initargs

:parent-uripath

Readers

parent-uripath (generic function)

Slot: import-uripath
Initargs

:import-uripath

Readers

import-uripath (generic function)

Condition: positioned-condition ()

Represents a condition that has a source position associated with it

Package

js-parser

Source

conditions.lisp (file)

Direct superclasses

condition (condition)

Direct subclasses
Direct methods
Direct slots
Slot: filename
Initargs

:filename

Initform

(quote nil)

Readers

filename (generic function)

Slot: pos
Initargs

:pos

Readers

pos (generic function)

Slot: row
Initargs

:row

Readers

row (generic function)

Slot: column
Initargs

:column

Readers

column (generic function)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.6 Structures

Structure: accept-action ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

action (structure)

Direct methods

make-load-form (method)

Structure: action ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

structure-object (structure)

Direct subclasses
Direct methods

print-object (method)

Structure: add-handler ()

Indicates that a new handler should be added to the handler stack at this point

Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: handler
Type

(or js-parser:identifier js-parser:function-expression)

Readers

add-handler-handler (function)

Writers

(setf add-handler-handler) (function)

Slot: thunk-body
Type

(or (cons js-parser:source-element) null)

Readers

add-handler-thunk-body (function)

Writers

(setf add-handler-thunk-body) (function)

Structure: continuation-call ()

A call to a continuation (as opposed to a call to any other sort of function)

Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

fn-call (structure)

Direct methods

make-load-form (method)

Structure: continuation-function ()

A function expression that is used as a continuation

Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

function-expression (structure)

Direct methods

make-load-form (method)

Structure: error-action ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

action (structure)

Direct methods

make-load-form (method)

Structure: goto ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: symbol
Type

symbol

Readers

goto-symbol (function)

Writers

(setf goto-symbol) (function)

Slot: target
Type

jsyacc::kernel

Initform

(jsyacc::required-argument)

Readers

goto-target (function)

Writers

(setf goto-target) (function)

Structure: grammar ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

structure-object (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: name
Readers

grammar-name (function)

Writers

(setf grammar-name) (function)

Slot: terminals
Type

list

Initform

(quote nil)

Readers

grammar-terminals (function)

Writers

(setf grammar-terminals) (function)

Slot: precedence
Type

list

Initform

(quote nil)

Readers

grammar-precedence (function)

Writers

(setf grammar-precedence) (function)

Slot: productions
Type

list

Initform

(quote nil)

Readers

grammar-productions (function)

Writers

(setf grammar-productions) (function)

Slot: %symbols
Type

(or list (member :undefined))

Initform

:undefined

Readers

grammar-%symbols (function)

Writers

(setf grammar-%symbols) (function)

Slot: derives-epsilon
Type

list

Initform

(quote nil)

Readers

grammar-derives-epsilon (function)

Writers

(setf grammar-derives-epsilon) (function)

Slot: derives-first
Type

list

Initform

(quote nil)

Readers

grammar-derives-first (function)

Writers

(setf grammar-derives-first) (function)

Slot: derives-first-terminal
Type

list

Initform

(quote nil)

Readers

grammar-derives-first-terminal (function)

Writers

(setf grammar-derives-first-terminal) (function)

Structure: import-decl ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: type-symbol
Type

symbol

Readers

import-decl-type-symbol (function)

Writers

(setf import-decl-type-symbol) (function)

Slot: uripath
Type

string

Readers

import-decl-uripath (function)

Writers

(setf import-decl-uripath) (function)

Structure: item ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

structure-object (structure)

Direct subclasses
Direct methods

print-object (method)

Direct slots
Slot: production
Type

jsyacc::production

Initform

(jsyacc::required-argument)

Readers

item-production (function)

Writers

(setf item-production) (function)

Slot: position
Type

jsyacc::index

Initform

(jsyacc::required-argument)

Readers

item-position (function)

Writers

(setf item-position) (function)

Structure: kernel ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

structure-object (structure)

Direct methods

print-object (method)

Direct slots
Slot: id
Type

(or null jsyacc::index)

Readers

kernel-id (function)

Writers

(setf kernel-id) (function)

Slot: items
Type

list

Initform

(quote nil)

Readers

kernel-items (function)

Writers

(setf kernel-items) (function)

Slot: gotos
Type

list

Initform

(quote nil)

Readers

kernel-gotos (function)

Writers

(setf kernel-gotos) (function)

Structure: lr0-item ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

item (structure)

Direct slots
Slot: lookaheads
Type

list

Initform

(quote nil)

Readers

item-lookaheads (function)

Writers

(setf item-lookaheads) (function)

Structure: lr1-item ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

item (structure)

Direct slots
Slot: lookahead
Type

symbol

Initform

(jsyacc::required-argument)

Readers

item-lookahead (function)

Writers

(setf item-lookahead) (function)

Structure: parser ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

structure-object (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: states
Type

jsyacc::index

Initform

(jsyacc::required-argument)

Readers

parser-states (function)

Writers

(setf parser-states) (function)

Slot: goto
Type

simple-vector

Initform

(jsyacc::required-argument)

Readers

parser-goto (function)

Writers

(setf parser-goto) (function)

Slot: action
Type

simple-vector

Initform

(jsyacc::required-argument)

Readers

parser-action (function)

Writers

(setf parser-action) (function)

Structure: production ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

structure-object (structure)

Direct methods
  • make-load-form (method)
  • print-object (method)
Direct slots
Slot: id
Type

(or null jsyacc::index)

Readers

production-id (function)

Writers

(setf production-id) (function)

Slot: symbol
Type

symbol

Initform

(jsyacc::required-argument)

Readers

production-symbol (function)

Writers

(setf production-symbol) (function)

Slot: derives
Type

list

Initform

(jsyacc::required-argument)

Readers

production-derives (function)

Writers

(setf production-derives) (function)

Slot: action
Type

function

Initform

(function list)

Readers

production-action (function)

Writers

(setf production-action) (function)

Slot: action-form
Readers

production-action-form (function)

Writers

(setf production-action-form) (function)

Structure: reduce-action ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

action (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: symbol
Type

symbol

Initform

(jsyacc::required-argument)

Readers

reduce-action-symbol (function)

Writers

(setf reduce-action-symbol) (function)

Slot: length
Type

jsyacc::index

Initform

(jsyacc::required-argument)

Readers

reduce-action-length (function)

Writers

(setf reduce-action-length) (function)

Slot: action
Type

function

Initform

(function list)

Readers

reduce-action-action (function)

Writers

(setf reduce-action-action) (function)

Slot: action-form
Readers

reduce-action-action-form (function)

Writers

(setf reduce-action-action-form) (function)

Structure: remove-handler ()

Indicates that a handler should be removed from the top of the handler stack at this point

Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: handler
Type

(or js-parser:identifier js-parser:function-expression)

Readers

remove-handler-handler (function)

Writers

(setf remove-handler-handler) (function)

Slot: thunk-body
Type

(or (cons js-parser:source-element) null)

Readers

remove-handler-thunk-body (function)

Writers

(setf remove-handler-thunk-body) (function)

Structure: resume-statement ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: target
Type

js-parser:expression

Readers

resume-statement-target (function)

Writers

(setf resume-statement-target) (function)

Slot: arg
Type

(or js-parser:expression null)

Readers

resume-statement-arg (function)

Writers

(setf resume-statement-arg) (function)

Structure: shift-action ()
Package

jsyacc

Source

jsyacc.lisp (file)

Direct superclasses

action (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: state
Type

jsyacc::index

Initform

(jsyacc::required-argument)

Readers

shift-action-state (function)

Writers

(setf shift-action-state) (function)

Structure: suspend-statement ()
Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

source-element (structure)

Direct methods

make-load-form (method)

Structure: thunk-function ()

A function expression that is used as a thunk in a boxed trampoline result

Package

js-parser

Source

js-source-model.lisp (file)

Direct superclasses

function-expression (structure)

Direct methods

make-load-form (method)

Structure: token ()

Represents a token returned by the lexer

Package

js-parser

Source

lex-javascript.lisp (file)

Direct superclasses

structure-object (structure)

Direct methods

make-load-form (method)

Direct slots
Slot: terminal
Type

symbol

Readers

token-terminal (function)

Writers

(setf token-terminal) (function)

Slot: value
Type

(or number string (cons string string) null)

Readers

token-value (function)

Writers

(setf token-value) (function)

Slot: start
Type

(or number null)

Readers

token-start (function)

Writers

(setf token-start) (function)

Slot: end
Type

(or number null)

Readers

token-end (function)

Writers

(setf token-end) (function)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.7 Classes

Class: javascript-lexer ()

Represents the current state of a lexing operation

Package

js-parser

Source

lex-javascript.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: cursor
Initform

0

Readers

cursor (generic function)

Writers

(setf cursor) (generic function)

Slot: text
Initargs

:text

Readers

text (generic function)

Slot: unget-stack
Readers

unget-stack (generic function)

Writers

(setf unget-stack) (generic function)

Slot: encountered-line-terminator
Readers

encountered-line-terminator (generic function)

Writers

(setf encountered-line-terminator) (generic function)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.8 Types

Type: index ()
Package

jsyacc

Source

jsyacc.lisp (file)

Type: lr1-collection ()
Package

jsyacc

Source

jsyacc.lisp (file)

Type: signed-index ()
Package

jsyacc

Source

jsyacc.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   J   L   M  
Index Entry  Section

F
File, Lisp, js-parser.asd: The js-parser<dot>asd file
File, Lisp, js-parser/external/jsyacc.lisp: The js-parser/external/jsyacc<dot>lisp file
File, Lisp, js-parser/src/conditions.lisp: The js-parser/src/conditions<dot>lisp file
File, Lisp, js-parser/src/general-utilities.lisp: The js-parser/src/general-utilities<dot>lisp file
File, Lisp, js-parser/src/js-source-model.lisp: The js-parser/src/js-source-model<dot>lisp file
File, Lisp, js-parser/src/lex-javascript.lisp: The js-parser/src/lex-javascript<dot>lisp file
File, Lisp, js-parser/src/lexer-macros.lisp: The js-parser/src/lexer-macros<dot>lisp file
File, Lisp, js-parser/src/package.lisp: The js-parser/src/package<dot>lisp file
File, Lisp, js-parser/src/parse-javascript-yacc.lisp: The js-parser/src/parse-javascript-yacc<dot>lisp file
File, Lisp, js-parser/src/parse-javascript.lisp: The js-parser/src/parse-javascript<dot>lisp file
File, Lisp, js-parser/src/source-transformations.lisp: The js-parser/src/source-transformations<dot>lisp file

J
js-parser.asd: The js-parser<dot>asd file
js-parser/external: The js-parser/external module
js-parser/external/jsyacc.lisp: The js-parser/external/jsyacc<dot>lisp file
js-parser/src: The js-parser/src module
js-parser/src/conditions.lisp: The js-parser/src/conditions<dot>lisp file
js-parser/src/general-utilities.lisp: The js-parser/src/general-utilities<dot>lisp file
js-parser/src/js-source-model.lisp: The js-parser/src/js-source-model<dot>lisp file
js-parser/src/lex-javascript.lisp: The js-parser/src/lex-javascript<dot>lisp file
js-parser/src/lexer-macros.lisp: The js-parser/src/lexer-macros<dot>lisp file
js-parser/src/package.lisp: The js-parser/src/package<dot>lisp file
js-parser/src/parse-javascript-yacc.lisp: The js-parser/src/parse-javascript-yacc<dot>lisp file
js-parser/src/parse-javascript.lisp: The js-parser/src/parse-javascript<dot>lisp file
js-parser/src/source-transformations.lisp: The js-parser/src/source-transformations<dot>lisp file

L
Lisp File, js-parser.asd: The js-parser<dot>asd file
Lisp File, js-parser/external/jsyacc.lisp: The js-parser/external/jsyacc<dot>lisp file
Lisp File, js-parser/src/conditions.lisp: The js-parser/src/conditions<dot>lisp file
Lisp File, js-parser/src/general-utilities.lisp: The js-parser/src/general-utilities<dot>lisp file
Lisp File, js-parser/src/js-source-model.lisp: The js-parser/src/js-source-model<dot>lisp file
Lisp File, js-parser/src/lex-javascript.lisp: The js-parser/src/lex-javascript<dot>lisp file
Lisp File, js-parser/src/lexer-macros.lisp: The js-parser/src/lexer-macros<dot>lisp file
Lisp File, js-parser/src/package.lisp: The js-parser/src/package<dot>lisp file
Lisp File, js-parser/src/parse-javascript-yacc.lisp: The js-parser/src/parse-javascript-yacc<dot>lisp file
Lisp File, js-parser/src/parse-javascript.lisp: The js-parser/src/parse-javascript<dot>lisp file
Lisp File, js-parser/src/source-transformations.lisp: The js-parser/src/source-transformations<dot>lisp file

M
Module, js-parser/external: The js-parser/external module
Module, js-parser/src: The js-parser/src module

Jump to:   F   J   L   M  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   %   (  
A   B   C   D   E   F   G   H   I   K   L   M   N   O   P   R   S   T   U   V   W   Y  
Index Entry  Section

%
%copy-item: Internal functions
%make-grammar: Internal functions
%make-kernel: Internal functions
%make-parser: Internal functions

(
(setf add-handler-end): Internal functions
(setf add-handler-handler): Internal functions
(setf add-handler-label): Internal functions
(setf add-handler-start): Internal functions
(setf add-handler-thunk-body): Internal functions
(setf array-literal-elements): Exported functions
(setf array-literal-end): Exported functions
(setf array-literal-label): Exported functions
(setf array-literal-start): Exported functions
(setf binary-operator-end): Exported functions
(setf binary-operator-label): Exported functions
(setf binary-operator-left-arg): Exported functions
(setf binary-operator-op-symbol): Exported functions
(setf binary-operator-right-arg): Exported functions
(setf binary-operator-start): Exported functions
(setf break-statement-end): Exported functions
(setf break-statement-label): Exported functions
(setf break-statement-start): Exported functions
(setf break-statement-target-label): Exported functions
(setf case-clause-body): Exported functions
(setf case-clause-end): Exported functions
(setf case-clause-label): Exported functions
(setf case-clause-start): Exported functions
(setf case-clause-value): Exported functions
(setf catch-clause-binding): Exported functions
(setf catch-clause-body): Exported functions
(setf catch-clause-end): Exported functions
(setf catch-clause-label): Exported functions
(setf catch-clause-start): Exported functions
(setf channel-name): Internal generic functions
(setf channel-name): Internal generic functions
(setf comma-expr-end):