This package exports functions to read and manipulate Common Lisp sources. Most of the text source properties are kept (file position, line number, comments, feature tests, etc), while no package is created and no symbol is interned. Copyright Pascal J. Bourguignon 2007 - 2007 This package is provided under the GNU General Public License. See the source file for details.
*source-readtable* |
variable |
The source readtable.
Initial value: #<READTABLE #x302000B765ED>
*source-signal-errors* |
variable |
NIL ==> return source-lexical-error objects T ==> signal the errors.
Initial value: NIL
(build-line-index file-path &key external-format) |
function |
DO: Build an index of the line positions in the file. FILE-PATH: The pathname of a text file. EXTERNAL-FORMAT: Passed to OPEN. Default: :default. RETURN: A vector of file positions of the beginning of each line.
comment |
class |
Represents a source comment.
Class precedence list: COMMENT SOURCE-OBJECT STANDARD-OBJECT T
Class init args: FILE POSITION TEXT COMMENT
(comment-text comment) |
generic-function |
The text of the comment.
DISPATCH-MACRO-ARGUMENT
DISPATCH-MACRO-CHARACTER-MIXIN
DISPATCH-MACRO-SUB-CHARACTER
GET-LINE-AND-COLUMN
MACRO-CHARACTER
MACRO-CHARACTER-MIXIN
(map-source-file fun source-file &key deeply only-atoms external-format) |
function |
FUN: A function (source-object) source-object: An instance of source-object parsed from a source file. When atoms is true, FUN is called only on source-objects not representing cons cells (lists).
MAP-SOURCE-STREAM
SOURCE-ARRAY
SOURCE-ATOM-P
SOURCE-BACKQUOTE
SOURCE-BASE-NUMBER
SOURCE-BASE-NUMBER-BASE
SOURCE-BASE-NUMBER-SPECIFIC
SOURCE-BIT-VECTOR
SOURCE-CHARACTER
SOURCE-COMPLEX
SOURCE-FEATURE
SOURCE-FUNCTION
SOURCE-LABEL-DEFINITION
SOURCE-LABEL-DEFINITION-FORM
SOURCE-LABEL-DEFINITION-LABEL
SOURCE-LABEL-REFERENCE
SOURCE-LABEL-REFERENCE-LABEL
SOURCE-LEXICAL-ERROR
SOURCE-LEXICAL-ERROR-ERROR
SOURCE-LIST
SOURCE-NOT-FEATURE
SOURCE-NUMBER
SOURCE-NUMBER-VALUE
SOURCE-OBJECT
SOURCE-OBJECT-FILE
SOURCE-OBJECT-POSITION
SOURCE-OBJECT-SUBFORM
SOURCE-OBJECT-TEXT
SOURCE-PATHNAME
SOURCE-QUOTE
SOURCE-READ
SOURCE-READ-EVAL
SOURCE-SEMICOLON-COMMENT
SOURCE-SEQUENCE
SOURCE-SEQUENCE-ELEMENTS
SOURCE-SHARP-PIPE-COMMENT
SOURCE-SPLICE
SOURCE-STRING
SOURCE-STRING-VALUE
SOURCE-STRUCTURE
SOURCE-SUBFORM
SOURCE-TOKEN
SOURCE-TOKEN-TEXT
SOURCE-TOKEN-TRAITS
SOURCE-UNQUOTE
SOURCE-VECTOR