class Phreak::Parser

Overview

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.

Defined in:

parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(block : Phreak::RootParser -> _) #

[View source]

Instance Method Detail

def parse(args : Array(String)) #

Invokes the parser on an array of arguments.


[View source]