Module syntax_parser

Module syntax_parser 

Source
Expand description

Parser and lexer implementation for the Document Character (Dc) syntax DSL.

Functionsยง

format_extension_regex_pattern
Formats a .Semantic:Pattern SyntaxPattern compiled by parse_extension_regex back into its canonical ~...~ regex extension notation.
is_extension_regex
Returns true if entry (after optional "case:" prefix) is a ~...~-delimited regex extension pattern.
parse_dc_syntax
Parses a complete Dc syntax rule declaration string (e.g. ":~ [^248 255]+ 248").
parse_extension_regex
Parses a ~...~-delimited regular expression from the format Extensions column into a DcSyntaxRule using the common .Semantic:Pattern primitives.
parse_target_token
Parses a target token strictly according to canonical shorthand formatting rules: