Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
alexandria
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Fedorov
alexandria
Commits
58270fb2
Commit
58270fb2
authored
1 year ago
by
Alexander Fedorov
Browse files
Options
Downloads
Patches
Plain Diff
Update documentation for the PARSE-BODY.
parent
81158afa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
alexandria-1/macros.lisp
+12
-2
12 additions, 2 deletions
alexandria-1/macros.lisp
with
12 additions
and
2 deletions
alexandria-1/macros.lisp
+
12
−
2
View file @
58270fb2
...
@@ -125,8 +125,18 @@ Example:
...
@@ -125,8 +125,18 @@ Example:
(
defun
parse-body
(
body
&key
documentation
whole
(
if-duplicate-doc-string
:error
))
(
defun
parse-body
(
body
&key
documentation
whole
(
if-duplicate-doc-string
:error
))
"Parses BODY into (values remaining-forms declarations doc-string).
"Parses BODY into (values remaining-forms declarations doc-string).
Documentation strings are recognized only if DOCUMENTATION is true.
Documentation strings are recognized only if DOCUMENTATION is true.
Syntax errors in body are signalled and WHOLE is used in the signal
arguments when given."
Syntax errors in body (duplicate doc strings, see ANSI 3.4.11) are
signalled by default and WHOLE is used in the signal arguments when
given.
This behavior can be configured by passing IF-DUPLICATE-DOC-STRING argument.
Defined keywords:
:ERROR - signals an error
:CERROR - signals a continuable error, defines restarts RETURN, IGNORE, or OVERWRITE
:RETURN - treats the string as the form and returns early
:IGNORE - ignores the string and continues parsing
:OVERWRITE - sets the documentation string and continues parsing"
(
let
((
doc
nil
)
(
let
((
doc
nil
)
(
decls
nil
)
(
decls
nil
)
(
current
nil
))
(
current
nil
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment