class Ven::Parselet::PAssign

Overview

Parses an assignment expression into a QAssign: foo := "bar", foo = 123.456, etc.

Defined in:

ven/parselet/led.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Ven::Parselet::Led

parse(parser : Reader, tag : QTag, left : Quote, token : Token) parse, precedence : UInt8 precedence

Constructor methods inherited from class Ven::Parselet::Led

new(precedence : UInt8) new

Class Method Detail

def self.validate(parser, left : Quote) #

Returns left if it is a valid assignment target. Otherwise, dies of read error.


[View source]
def self.validate?(left : Quote) : Bool #

Returns whether left is a valid assignment target.


[View source]

Instance Method Detail

def parse(parser, tag, left, token) #

[View source]