SSVC icon indicating copy to clipboard operation
SSVC copied to clipboard

Automate ABNF to python namespace patterns

Open ahouseholder opened this issue 4 months ago • 1 comments

In #898, we added a new ABNF file src/ssvc/utils/ssvc_namespace_pattern.abnf that was used to generate the namespace regex patterns in src/ssvc/utils/patterns.py. However, this conversion was a one-shot static event.

I'd like us to be able to dynamically read the .abnf file and have that populate the items in patterns.py automatically at run time. I believe this is possible using library methods from abnf-to-regex.

ahouseholder avatar Aug 21 '25 15:08 ahouseholder

Added https://github.com/aas-core-works/abnf-to-regexp/issues/44 to fix the repetition regex difference in upstream first.

bernhardreiter avatar Sep 17 '25 07:09 bernhardreiter