This is the com.gigamonkeys.parser Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Tue Jul 15 06:01:55 2025 GMT+0.
The main system appears first, followed by any subsystem dependency.
com.gigamonkeys.parserParser generator, loosely based on Henry Baker’s META paper.
Peter Seibel <peter@gigamonkeys.com>
com.gigamonkeys.macro-utilities (system).
com.gigamonkeys.utilities (system).
packages.lisp (file).
parser.lisp (file).
Files are sorted by type and then listed depth-first from the systems components trees.
com.gigamonkeys.parser/com.gigamonkeys.parser.asdcom.gigamonkeys.parser/packages.lispcom.gigamonkeys.parser/parser.lispcom.gigamonkeys.parser/com.gigamonkeys.parser.asdcom.gigamonkeys.parser (system).
com.gigamonkeys.parser/packages.lispcom.gigamonkeys.parser (system).
com.gigamonkeys.parser/parser.lisppackages.lisp (file).
com.gigamonkeys.parser (system).
defchartype (macro).
deflexer (macro).
defparser (macro).
defprod (macro).
kind (reader method).
(setf kind) (writer method).
parselet (macro).
print-object (method).
value (reader method).
value (reader method).
(setf value) (writer method).
*productions* (special variable).
alternative-grammar (class).
build-grammar (class).
character-grammar (class).
character-parser (class).
chartype-production (class).
code (generic function).
composite-grammar (class).
conjunctive-grammar (class).
dump-tokens (function).
emit-parser-body (generic function).
emit-production-function (generic function).
form (reader method).
grammar (reader method).
grammar (reader method).
grammar (reader method).
grammar (class).
grammar-production (class).
is-token (generic function).
literal-value-grammar (class).
make-grammar (generic function).
make-special-grammar (generic function).
name (reader method).
name (reader method).
name (reader method).
name (reader method).
negative-grammar (class).
not-match-grammar (class).
optional-grammar (class).
parser (class).
plus-grammar (class).
production (class).
production-call-grammar (class).
productions-called (generic function).
productions-used (generic function).
sequence-grammar (class).
star-grammar (class).
start (reader method).
(setf start) (writer method).
string-grammar (class).
sub-grammar (reader method).
sub-grammars (reader method).
token (class).
token-match-grammar (class).
token-parser (class).
tokenize-file (function).
tokens (reader method).
(setf tokens) (writer method).
variables (reader method).
Packages are listed by definition order.
com.gigamonkeys.new-parsercom.gigamonkeys.math-parsercom.gigamonkeys.parser.dot-parsercom.gigamonkeys.parsercom.gigamonkeys.csscom.gigamonkeys.parser.time-period-parsercom.gigamonkeys.java-lexercom.gigamonkeys.parser.dot-parsercom.gigamonkeys.parser.
com.gigamonkeys.utilities.
common-lisp.
com.gigamonkeys.parsercommon-lisp.
defchartype (macro).
deflexer (macro).
defparser (macro).
defprod (macro).
kind (generic reader).
(setf kind) (generic writer).
parselet (macro).
value (generic reader).
(setf value) (generic writer).
*productions* (special variable).
alternative-grammar (class).
build-grammar (class).
character-grammar (class).
character-parser (class).
chartype-production (class).
code (generic function).
composite-grammar (class).
conjunctive-grammar (class).
dump-tokens (function).
emit-parser-body (generic function).
emit-production-function (generic function).
form (generic reader).
grammar (generic reader).
grammar (class).
grammar-production (class).
is-token (generic function).
literal-value-grammar (class).
make-grammar (generic function).
make-special-grammar (generic function).
name (generic reader).
negative-grammar (class).
not-match-grammar (class).
optional-grammar (class).
parser (class).
plus-grammar (class).
production (class).
production-call-grammar (class).
productions-called (generic function).
productions-used (generic function).
sequence-grammar (class).
star-grammar (class).
start (generic reader).
(setf start) (generic writer).
string-grammar (class).
sub-grammar (generic reader).
sub-grammars (generic reader).
token (class).
token-match-grammar (class).
token-parser (class).
tokenize-file (function).
tokens (generic reader).
(setf tokens) (generic writer).
variables (generic reader).
com.gigamonkeys.parser.time-period-parsercom.gigamonkeys.parser.
com.gigamonkeys.utilities.
common-lisp.
Definitions are sorted by export status, category, package, and then by lexicographic order.
Define a character-type production. The body should be a typespec that defines a type whose extension is a subset of characters, e.g. ’(member #a #b #c)
Define a parser that collects a vector of tokens.
Define a parser function in the PARSER grammar language.
Define an arbitrary production in the PARSER grammar language.
Define local parsers. Parslet is to defparser as flet is to defun.
literal-value-grammar)) ¶automatically generated reader method
Tokenize the given file with the given lexer function.
Emit the code to match the gramar
token-match-grammar) (parser parser) &key save-p) ¶build-grammar) (parser parser) &key save-p) ¶not-match-grammar) (parser parser) &key save-p) ¶Matches only if the sub-grammar fails to match or, if it does match, if index hasn’t moved up to end-match. (I.e. this can only be used inside a conjuctive grammar.
negative-grammar) (parser parser) &key save-p) ¶plus-grammar) (parser parser) &key save-p) ¶star-grammar) (parser parser) &key save-p) ¶optional-grammar) (parser parser) &key save-p) ¶conjunctive-grammar) (parser parser) &key save-p) ¶alternative-grammar) (parser parser) &key save-p) ¶sequence-grammar) (parser parser) &key save-p) ¶production-call-grammar) (parser parser) &key save-p) ¶string-grammar) (parser token-parser) &key save-p) ¶string-grammar) (parser character-parser) &key save-p) ¶character-grammar) (parser token-parser) &key save-p) ¶character-grammar) (parser character-parser) &key save-p) ¶Emit the whole body of the parser.
Emit code for a function definition that will match the grammar of a given production
grammar-production) (parser parser)) ¶chartype-production) (parser parser)) ¶build-grammar)) ¶automatically generated reader method
form.
grammar-production)) ¶automatically generated reader method
build-grammar)) ¶automatically generated reader method
Make a tree of grammar objects from an s-expression.
(eql com.gigamonkeys.parser:%)) sexp) ¶(eql com.gigamonkeys.parser:^)) sexp) ¶(eql com.gigamonkeys.parser:@)) sexp) ¶(eql com.gigamonkeys.parser:&)) sexp) ¶(eql /)) sexp) ¶(eql com.gigamonkeys.parser:!)) sexp) ¶(eql com.gigamonkeys.parser:~)) sexp) ¶(eql +)) sexp) ¶(eql *)) sexp) ¶(eql com.gigamonkeys.parser:?)) sexp) ¶production)) ¶automatically generated reader method
name.
token-match-grammar)) ¶automatically generated reader method
name.
production-call-grammar)) ¶automatically generated reader method
name.
Return a list of productions called by the grammar
negative-grammar)) ¶composite-grammar)) ¶A composite grammar uses whatever is in its sub-grammar.
sequence-grammar)) ¶A sequence grammar uses all the productions its sub-grammars call.
token-match-grammar)) ¶production-call-grammar)) ¶A production call uses its production.
Return a list of productions used by a grammar or a gramatical production.
grammar-production) seen) ¶chartype-production) seen) ¶build-grammar) seen) ¶composite-grammar) seen) ¶A composite grammar uses whatever is in its sub-grammar.
sequence-grammar) seen) ¶A sequence grammar uses all the productions its sub-grammars call.
production-call-grammar) seen) ¶A production call uses the called production and any productions in its own grammar.
composite-grammar)) ¶automatically generated reader method
sequence-grammar)) ¶automatically generated reader method
grammar-production)) ¶automatically generated reader method
:sub-grammar
This slot is read-only.
code.
code.
code.
code.
code.
code.
code.
code.
code.
code.
code.
emit-parser-body.
emit-production-function.
emit-production-function.
grammar.
is-token.
is-token.
name.
(setf tokens).
tokens.
:tokens
:sub-grammars
This slot is read-only.
| Jump to: | ( C D E F G I K M N P S T V | 
|---|
| Jump to: | ( C D E F G I K M N P S T V | 
|---|
| Jump to: | * F G K N S T V | 
|---|
| Jump to: | * F G K N S T V | 
|---|
| Jump to: | A B C F G L N O P S T | 
|---|
| Jump to: | A B C F G L N O P S T | 
|---|