1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +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:
Andy Wingo 2021-03-09 20:50:08 +01:00
parent c97e1fbb53
commit 5046385df8
3 changed files with 11 additions and 1 deletions

2
NEWS
View file

@ -178,6 +178,8 @@ See "Syntax Case" in the manual.
** `syntax-sourcev'
See "Syntax Transformer Helpers" in the manual.
* Bug fixes
** Fix reverse-list->string docstring

View file

@ -862,6 +862,13 @@ Return the name of the module whose source contains the identifier
@var{id}.
@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]
Resolve the identifer @var{id}, a syntax object, within the current
lexical environment, and return two values, the binding type and a

View file

@ -24,7 +24,8 @@
syntax-local-binding
(%syntax-module . syntax-module)
syntax-locally-bound-identifiers
syntax-session-id))
syntax-session-id
syntax-sourcev))
;; Used by syntax.c.
(define (print-syntax obj port)