Next: , Previous: , Up: expander utils   [Index]


15.4.8 Unwrapping syntax objects

Function: syntax-unwrap stx

Given a syntax object stx decompose it and return the corresponding symbolic expression holding datums and identifiers. Take care of returning a proper list when the input is a syntax object holding a proper list.

Function: syntax-replace-id stx src dst

Replace every occurrence of the identifier src in stx with the identifier dst. Return the resulting fully unwrapped syntax object.