mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Document syntax-sourcev
* NEWS: Add doc link. * doc/ref/api-macros.texi (Syntax Transformer Helpers): Document syntax-sourcev. * module/system/syntax.scm: Re-export syntax-sourcev.
This commit is contained in:
parent
c97e1fbb53
commit
5046385df8
3 changed files with 11 additions and 1 deletions
2
NEWS
2
NEWS
|
@ -178,6 +178,8 @@ See "Syntax Case" in the manual.
|
||||||
|
|
||||||
** `syntax-sourcev'
|
** `syntax-sourcev'
|
||||||
|
|
||||||
|
See "Syntax Transformer Helpers" in the manual.
|
||||||
|
|
||||||
* Bug fixes
|
* Bug fixes
|
||||||
|
|
||||||
** Fix reverse-list->string docstring
|
** Fix reverse-list->string docstring
|
||||||
|
|
|
@ -862,6 +862,13 @@ Return the name of the module whose source contains the identifier
|
||||||
@var{id}.
|
@var{id}.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
|
@deffn {Scheme Procedure} syntax-sourcev stx
|
||||||
|
Like @code{syntax-source}, but returns its result in a more compact
|
||||||
|
@code{#(@var{filename} @var{line} @var{column})} format. This format is
|
||||||
|
used as the internal representation of source locations for syntax
|
||||||
|
objects.
|
||||||
|
@end deffn
|
||||||
|
|
||||||
@deffn {Scheme Procedure} syntax-local-binding id [#:resolve-syntax-parameters?=#t]
|
@deffn {Scheme Procedure} syntax-local-binding id [#:resolve-syntax-parameters?=#t]
|
||||||
Resolve the identifer @var{id}, a syntax object, within the current
|
Resolve the identifer @var{id}, a syntax object, within the current
|
||||||
lexical environment, and return two values, the binding type and a
|
lexical environment, and return two values, the binding type and a
|
||||||
|
|
|
@ -24,7 +24,8 @@
|
||||||
syntax-local-binding
|
syntax-local-binding
|
||||||
(%syntax-module . syntax-module)
|
(%syntax-module . syntax-module)
|
||||||
syntax-locally-bound-identifiers
|
syntax-locally-bound-identifiers
|
||||||
syntax-session-id))
|
syntax-session-id
|
||||||
|
syntax-sourcev))
|
||||||
|
|
||||||
;; Used by syntax.c.
|
;; Used by syntax.c.
|
||||||
(define (print-syntax obj port)
|
(define (print-syntax obj port)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue