On 14/06/2019 11:56, Carsten Bormann wrote:
> Now the main deployability problem with W3C XSD regexes is that they added 
> some functionality that is sorely missing in other dialects, such as 
> character class subtraction, so it is more than an hour of work to write a 
> converter from XSD regexes to you favorite flavor.  Maybe we should encourage 
> some open source software in this space…

Having gone through the path of:
- just throw it in java.util.regex.Pattern, with ^$ wrapped
- oh yeah, that does not work for complex patterns
- oh wait, character class references are different
- oh wait, character groups are different
...

I decided to take this exact approach here:
https://git.opendaylight.org/gerrit/73875 . The idea is to contribute
the ANTLR grammar to https://github.com/antlr/grammars-v4/ so that
anybody working with a language supported by ANTLR can get some head start.

This work low priority for me, though, as the current set of hacks work
well enough and a complete solution requires Java 9 anyway -- so anyone
is free to pick it up...

Regards,
Robert

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to