class

Phreak::Parser

Inherits Reference < Object

This class serves as a reusable form of Phreak.parse. This allows for a variety of uses, such as more readable code, complex interpreters, and even text adventure games.

Constructors

new(block : Phreak::RootParser -> _)
Source

Instance methods

parse(args : Array(String))

Invokes the parser on an array of arguments.

Source