Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinobuAmasaki authored Aug 20, 2024
1 parent d519df7 commit 3d9897c
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,22 +210,27 @@ Command:

```shell
forgex-cli find match lazy-dfa '([a-z]*g+)n?' .match. 'assign'
```

If you run it through `fpm run`:

# If you run it through fpm run
```shell
fpm run forgex-cli --profile release -- find match lazy-dfa '([a-z]*g+)n?' .match. 'assign'
```

Output:

```
pattern: ([a-z]*g+)n?
text: 'assign'
parse time: 46.5us
compile nfa time: 74.9us
dfa initialize time: 78.4us
search time: 661.7us
matching result: T
memory (estimated): 10380
pattern: ([a-z]*g+)n?
text: 'assign'
parse time: 42.9us
extract literal time: 23.0us
runs engine: T
compile nfa time: 26.5us
dfa initialize time: 4.6us
search time: 617.1us
matching result: T
memory (estimated): 10324
========== Thompson NFA ===========
state 1: (?, 5)
Expand Down Expand Up @@ -260,7 +265,7 @@ The following features are planned to be implemented in the future:

- [ ] Add Unicode escape sequence `\p{...}`
- [ ] Deal with invalid byte strings in UTF-8
- [ ] Optimize by literal searching method
- [x] Optimize by literal searching method
- [x] Add a CLI tool for debugging and benchmarking
- [x] Make all operators `pure elemental` attribute
- [x] Publish the documentation
Expand Down

0 comments on commit 3d9897c

Please sign in to comment.