import { Parser, SubParsers } from '../parser'; import { union } from '../control/union'; export function fallback

(parser: P, otherwise: Parser, Parser.Input

, SubParsers, Parser.Input

>>): P; export function fallback(parser: Parser, otherwise: Parser): Parser { return union([parser, otherwise]); }