Interface ParserCore

Source
Expand description

Top-level rules executor. Glues block/inline parsers and does intermediate transformations.


interface ParserCore {
    ruler: Ruler<[StateCore], void>;
    State: typeof StateCore;
    process(state: StateCore): void;
}

Properties§

§ruler: Ruler<[StateCore], void> = ...

Ruler instance. Keep configuration of core rules.

§State: typeof StateCore = StateCore

Methods§

Source§

process(state: StateCore): void

Executes core chain rules.