Class: SyntaxStops

wt2html/tokenizer_utils~SyntaxStops()

new SyntaxStops()

Syntax stops: Avoid eating significant tokens for higher-level rules in nested inline rules.

Syntax stops: Avoid eating significant tokens for higher-level rules in nested inline rules.

Flags for specific parse environments (inside tables, links etc). Flags trigger syntactic stops in the inline_breaks rule, which terminates inline and attribute matches. Flags merely reduce the number of rules needed: The grammar is still context-free as the rules can just be unrolled for all combinations of environments at the cost of a much larger grammar.

Source:

Methods

push()

A stack for nested, but not cumulative syntactic stops.

A stack for nested, but not cumulative syntactic stops. Example: '=' is allowed in values of template arguments, even if those are nested in attribute names.

Source: