Macro

Quote

macro Quote(context: TokenTreeMacroContext) -> ()

Namespace: Raven.Macros
Assembly: Raven.Macros.dll
Source file: Quote.rvn

Quotes a Raven expression as an immutable Raven syntax tree.

Import Raven.Macros.* to invoke the conventional quote! alias. The canonical Raven.Macros.Quote! spelling remains available when the alias is shadowed or the namespace is not imported.

The resulting value is rooted in Raven's syntax-tree API. Use that reference when inspecting, constructing, or transforming quoted syntax.

Example

import Raven.Macros.*

let syntax = quote! {
    left + right
}