class Ven::Parselet::PFun
- Ven::Parselet::PFun
- Ven::Parselet::Nud
- Reference
- Object
Overview
Reads a function definition into QFun.
Direct Known Subclasses
Defined in:
ven/parselet/nud.crInstance Method Summary
-
#diamond!
Reads the diamond form.
-
#given!
Reads the body of a 'given' appendix.
-
#param!(utility = true)
Reads a parameter.
-
#params!(utility = true)
Reads a list of parameters.
- #parse(tag, token)
Instance methods inherited from class Ven::Parselet::Nud
block(opening = true, semicolon : Bool = false)
block,
die(message : String)
die,
led(precedence : Precedence)led(precedence = @precedence) led, parse(tag : QTag, token : Word) parse, parse!(parser : Ven::Reader, tag : QTag, token : Ven::Word) parse!, semicolon : Bool semicolon, symbol(tag, token = nil) : QSymbol symbol
Constructor methods inherited from class Ven::Parselet::Nud
new(precedence : UInt8 = 0_u8)
new
Instance Method Detail
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 '$'.