diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-12-10 20:50:35 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-12-10 20:50:35 +0200 |
| commit | 180572c70477e78c43c745d2331ebf4d39d9ff10 (patch) | |
| tree | bf09fc9d4df1d5d638e339b56a69d583d2c7ee16 /src/nfa.rs | |
| parent | 2419f52d434096edebab85b3fa7141bcfa584583 (diff) | |
| download | rex-master.tar.xz rex-master.zip | |
Diffstat (limited to 'src/nfa.rs')
| -rw-r--r-- | src/nfa.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -130,8 +130,13 @@ impl NFA { // TODO: chars.nth() Work at O(n) consider using bytes instead of losing UTF-8 support Trans::Symbol(ch) => match input.chars().nth(idx) { Some(nxt) if nxt == *ch => { + // choose idx += 1; + + //explore result |= self.matches_helper(self.states.get(id).unwrap(), input, idx); + + // unchoose idx -= 1; } None => {} |
