class Ven::Parselet::PBox

Overview

Parses a 'box' statement: box Foo. Box name must be capitalized. A box can accept parameters the way funs accept them: box Foo(a, b) given num, etc. Boxes can have blocks (namespaces), which may contain solely assignments (PAssigns):

  box Foo {
    x = 0;
    y = x;
 }

Defined in:

ven/parselet/nud.cr

Instance Method Summary

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

parse(parser : Reader, tag : QTag, token : Token) parse, semicolon? : Bool semicolon?

Instance Method Detail

def parse(parser, tag, token) #

[View source]