class Ven::Parselet::PSpread
Overview
Reads a spread into QMapSpread or QReduceSpread.
QMapSpread operator does not support naked unary; i.e.,
|+_| [1, "2", false]
will die of read error. Hence a
grouping should be used: |(+_)| [1, "2", false]
Defined in:
ven/parselet/nud.cr
Instance Method Summary
Instance methods inherited from class Ven::Parselet::Nud
parse(tag : QTag, token : Word)
parse ,
parse!(parser : Reader, tag : QTag, token : Word)
parse!
block(opening = true , semicolon : Bool = false )
block ,
die(message : String)
die ,
led(precedence = @precedence)
led ,
precedence : Precedence
precedence ,
semicolon : Bool
semicolon ,
symbol(tag, token = nil ) : QSymbol
symbol
Constructor methods inherited from class Ven::Parselet::Share
new(precedence : Ven::Precedence = Precedence :: ZERO )
new
Instance Method Detail