abstract class Ven::Parselet::Nud

Overview

A parser that is invoked by a null-denotated token.

Direct Known Subclasses

Defined in:

ven/parselet/nud.cr

Instance Method Summary

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

abstract def parse(tag : QTag, token : Word) #

Performs the parsing.

All subclasses of Nud should implement this method.


[View source]
def parse!(parser : Reader, tag : QTag, token : Word) #

Performs the parsing.

Subclasses of Nud should not override this method. They should (actually, must) implement #parse instead.


[View source]