This is the dso-lex Reference Manual, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 13:20:48 2020 GMT+0.
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
The main system appears first, followed by any subsystem dependency.
• The dso-lex system |
dso-lex.asd (file)
lex.lisp (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The dso-lex.asd file | ||
• The dso-lex/lex.lisp file |
Next: The dso-lex/lex․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
dso-lex.asd
dso-lex (system)
Previous: The dso-lex․asd file, Up: Lisp files [Contents][Index]
dso-lex (system)
lex.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The dso-lex package |
Allows the definition of lexers. See DEFLEXER.
lex.lisp (file)
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported macros | ||
• Exported functions |
Next: Exported functions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
Defines a lexer, called as a function of the given NAME, and returning
the matched token-class, image, and image-length as values. The body
consists of token-class definitions, each being a list of a regular
expression, the name of the class, and an optional filter.
Unless PRIORITY-ONLY is true, the longest match will win, and
rule-priority will only be used to break ties. Otherwise, the first
match wins.
Example:
(deflexer lexer ()
("[0-9]+" number parse-integer)
("[a-zA-Z]" letter))
(lexer "2pi" 1)
Previous: Exported macros, Up: Exported definitions [Contents][Index]
Returns a lexer function. The DEFS consists of token-class definitions, each being a list of a regular expression, the name of the class, and an optional filter. The returned function takes as arguments an input sequence and an optional start position, and returning the matched token-class, image, and image-length as values.
Unless PRIORITY-ONLY is true, the longest match will win, and
rule-priority will only be used to break ties. Otherwise, the first
match wins.
Example:
(let ((lexer (make-lexer ’(("[0-9]+" number parse-integer)
("[a-zA-Z]" letter)))))
(funcall lexer "2pi" 1))
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal functions |
Previous: Internal definitions, Up: Internal definitions [Contents][Index]
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | D F L |
---|
Jump to: | D F L |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | A B C D F G L M W |
---|
Jump to: | A B C D F G L M W |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | D P S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
D | |||
dso-lex : | The dso-lex system | ||
dso-lex : | The dso-lex package | ||
| |||
P | |||
Package, dso-lex : | The dso-lex package | ||
| |||
S | |||
System, dso-lex : | The dso-lex system | ||
|
Jump to: | D P S |
---|