zhaih commented on a change in pull request #225:
URL: https://github.com/apache/lucene/pull/225#discussion_r724693503



##########
File path: lucene/core/src/java/org/apache/lucene/util/automaton/RegExp.java
##########
@@ -551,12 +551,22 @@ static RegExp newLeafNode(
     return new RegExp(flags, kind, null, null, s, c, min, max, digits, from, 
to);
   }
 
+  /**
+   * Return an <code>Automaton</code> from this <code>RegExp</code> that will 
skip the determinize
+   * and minimize step
+   *
+   * @return {@link Automaton} most likely non-deterministic
+   */
+  public Automaton toNFA() {

Review comment:
       I didn't read it carefully, but it's just using a systematic way I 
think, similar to what stated here: https://swtch.com/~rsc/regexp/regexp1.html?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to