Class in macro compiler

Reader

class Reader
Import
use macro::{Reader};
Source: compiler/src/prelude/macro.hy

Reads a macro call’s input: length-prefixed fields (<len>:<bytes>, lists as a count then their items) in constructor order, written by the compiler (macros::encode).

Fields#

FieldTypeDescription
bytesVec<byte>
posint

Associated functions#

NameDescription
over

Methods#

NameDescription
strOne field.
intA field holding a decimal integer, possibly negative.
bool
strings
ident
exprA macro argument: kind, text, then its value (kind, text, exponent).
exprs
idents
type_ref
type_refs
attrs
field
fields
variants
type_decl
fn_decl

See also#

  • Code: Generated coil source: declarations, an expression, statements or a type.
  • Ident: A name as written in source.
  • Expr: A function-style macro argument as written: f(1), a + b, "text".
  • TypeRef: A type annotation as written (not resolved): Vec<int>, json::Value.
  • AttrArg: One key = value (or positional value, with key == "") attribute argument.
  • Attr: #[name(args)] on a declaration, field or variant.
  • Field: A class field, or a field of a record enum variant.
  • Variant: One enum variant.
↑ ↓ navigate ↵ open