Function in macro compiler

raw

fn raw(string text) -> Code
Import
use macro::{raw};
Source: compiler/src/prelude/macro.hy

Raw source, spliced as is.

Parameters#

NameType
textstring

Returns#

Code

See also#

  • join: Join fragments with sep (the lowering of $(xs) sep *).
  • lit: A string literal: lit("a\"b") splices as "a\"b".
  • lit_int: An integer literal.
  • concat: Combine several generated item lists.
  • ident: A name, for splicing generated identifiers: ${ident("to_" + n)}.
  • decimal: A decimal integer the compiler wrote (- then digits, in range).
  • attr_index: Index of the attribute called name, or -1.
  • attr_value: #[attr(key = "value")] from an attribute list, or fallback.
↑ ↓ navigate ↵ open