class Ven::Parselet::PFun
- Ven::Parselet::PFun
- Ven::Parselet::Nud
- Ven::Parselet::Share
- 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
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 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 '$'.