Hi Damien,

On Mon, May 13, 2024 at 4:43 AM Damien Mattei <damien.mat...@gmail.com> wrote:
>
> any idea for a predicate for syntax object in Guile/scheme like exist in
> Racket 'syntax?' ?

This predicate is in the (system syntax) module in Guile.

> - what is a wrapped syntax object?

Syntax objects are part of the syntax-case procedural macro system. A
syntax object wraps a value with things like lexical context and
source location (when available).

For example:

scheme@(guile-user)> (call-with-input-string "(1 2 3)" read-syntax)
$16 = #<syntax:unknown file:1:0 (#<syntax:unknown file:1:1 1>
#<syntax:unknown file:1:3 2> #<syntax:unknown file:1:5 3>)>

See 6.8.3 Support for the ‘syntax-case’ System in the manual.

Hope this helps,

- Dave

Reply via email to