Skip to main content

multisource

Function multisource 

Source
pub fn multisource(
    parser: &mut Tabnas,
    options: MultiSourceOptions,
) -> Result<(), MultiSourceError>
Expand description

Install the plugin on parser.

The convenience constructor mirroring tn.use(MultiSource, options). The host grammar must already supply the val, map and pair rules (a jsonic parser does, for example), or this returns an error rather than registering a directive that could never match.