abstract class Pegasus::Generators::Api::Input(I)

Overview

A generalization of data input. Subclasses such as StdInput and FileInput provide a way to read grammar / semantics files from various sources. The #add_option method registers command-line option(s) for the user to configure.

Direct Known Subclasses

Defined in:

generators/generators.cr

Instance Method Summary

Instance Method Detail

def add_option(opt_parser) #

Register this input method's options with the given PegasusOptionParser.


[View source]
abstract def process(opt_parser) : I #

Read input of type I.


[View source]