Generating Rust code from regex-automata
types
#1192
Replies: 1 comment 4 replies
-
I think I already responded to this on reddit right? I said:
Is there a question you had about this response? What kind of patterns are you trying to compile? Are you actually able to compile a pattern that is under but near the limit? |
Beta Was this translation helpful? Give feedback.
-
Hello @BurntSushi,
On Reddit I asked about using the Automaton trait to generate Rust code. Specifically to build a Regex search implementation that leverages generated code that can be statically compiled into a binary.
I understand there's a lot of other optimisation in play within the Regex crate, which I'd be keen to explore as well. E.g. literal optimisations.
I'd like to debate an implementation. In addition, I'd be keen to understand code generation for extremely large and complex patterns that currently cannot be compiled into a DFA due to an excessive number of states.
Given this, I don't know if it would be possible to explore other types within this crate for use in code generation.
Beta Was this translation helpful? Give feedback.
All reactions