class Ven::Parselet::PFun

Overview

Reads a function definition into QFun.

Direct Known Subclasses

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!

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

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

def diamond! #

Reads the diamond form.


[View source]
def given! #

Reads the body of a 'given' appendix.


[View source]
def param!(utility = true) #

Reads a parameter.

utility determines whether to allow '*', '$'.


[View source]
def params!(utility = true) #

Reads a list of parameters.

utility determines whether to allow '*', '$'.

Ensures that there is one slurpie and it is at the end of the list.

Ensures that there is only one '$'.


[View source]
def parse(tag, token) #

[View source]