amazon-ion / ion-schema-rust

Rust implementation of Ion Schema
https://amazon-ion.github.io/ion-schema/sandbox
Apache License 2.0
13 stars 6 forks source link

Use a generated parser for regex validation #97

Open desaikd opened 2 years ago

desaikd commented 2 years ago

Currently Regex needs some preprocessing done on the expression to see if this is supported by Ion Schema specificationor not. We need to investigate on having some parser from a grammar for validating regex.

Currently, we need handwritten code for validating the regex pattern. Maybe there's a crate that we could use to generate a parser from a grammar that can validate the regex pattern (e.g. Pest). 🤷‍♂️

Originally posted by @desaikd in https://github.com/amzn/ion-schema-rust/issues/96#issuecomment-1184957553