class

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

Inherits Reference / Object

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.

Instance methods

add_option(opt_parser)

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

Source
process(opt_parser) : I

Read input of type I.

Source