Difference between revisions of "Input validator"
From Problem Archive
m (moved Input format validator to Input validator: Rename) |
(Changed "Input format validator" to "Input validator") |
||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
− | An Input | + | An Input validator is a program that tests input data for correctness. |
A validator program must be an application (executable or interpreted) capable of being invoked with a command line call. The details of this invocation are described below. | A validator program must be an application (executable or interpreted) capable of being invoked with a command line call. The details of this invocation are described below. | ||
Line 7: | Line 7: | ||
== Invocation == | == Invocation == | ||
− | When invoked the input | + | When invoked the input validator will get the input file on stdin. |
The validator should be possible to use as follows on the command line: | The validator should be possible to use as follows on the command line: | ||
Line 15: | Line 15: | ||
== Output == | == Output == | ||
− | The input | + | The input validator may output debug information on stdout and stderr. This information may be displayed to the user upon invocation of the validator. |
== Exit codes == | == Exit codes == | ||
− | The input | + | The input validator must exit with code 42 on successful validation. Any other exit code means that the input file could not be confirmed as valid. |
Revision as of 08:46, 2 August 2013
Contents
Overview
An Input validator is a program that tests input data for correctness.
A validator program must be an application (executable or interpreted) capable of being invoked with a command line call. The details of this invocation are described below.
Invocation
When invoked the input validator will get the input file on stdin.
The validator should be possible to use as follows on the command line:
./validator [arguments] < inputfile
Output
The input validator may output debug information on stdout and stderr. This information may be displayed to the user upon invocation of the validator.
Exit codes
The input validator must exit with code 42 on successful validation. Any other exit code means that the input file could not be confirmed as valid.