module Ven::Suite

Direct including types

Defined in:

ven/suite/chunk.cr
ven/suite/detree.cr
ven/suite/error.cr
ven/suite/extension.cr
ven/suite/field_accessor.cr
ven/suite/frame.cr
ven/suite/instruction.cr
ven/suite/label.cr
ven/suite/model.cr
ven/suite/opcode.cr
ven/suite/payload.cr
ven/suite/quote.cr
ven/suite/read_expansion.cr
ven/suite/snippet.cr
ven/suite/trace.cr
ven/suite/visitor.cr

Macro Summary

Macro Detail

macro extension(name, &block) #

A DSL for quickly making Ven extensions.

Assignments (x = y) are converted into Ven symbol assignments.

Omits '_' at the end of an assignment target, allowing to name Ven symbols like Crystal keywords (if_ = 1).

If there is an assignment to a Path (e.g., foo = Bar), the appropriate MType is created.

defs are converted into Ven builtins. Argument types count; unspecified will default to Model. Unspecified return type means return a Model. Nil return type means return a Ven bool true. Return type T means return T.new(value_returned_by_def).


[View source]