Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
POTTIER Francois
fix
Commits
a40570ac
Commit
a40570ac
authored
6 years ago
by
POTTIER Francois
Browse files
Options
Downloads
Patches
Plain Diff
Comment.
parent
75a08d51
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
demos/brz/Brzozowski.ml
+5
-1
5 additions, 1 deletion
demos/brz/Brzozowski.ml
with
5 additions
and
1 deletion
demos/brz/Brzozowski.ml
+
5
−
1
View file @
a40570ac
...
...
@@ -399,7 +399,7 @@ type dfa = {
that case, the following flag should be set to true]. *)
let
accepting_state_can_have_successors
=
fals
e
tru
e
let
may_have_successors
(
e
:
regexp
)
:
bool
=
accepting_state_can_have_successors
||
not
(
nullable
e
)
...
...
@@ -476,6 +476,10 @@ let dfa (e : regexp) : dfa =
the input, so (if desired) it is easy to check a posteriori whether the end
of the input was reached. *)
(* Beside, if [accepting_state_can_have_successors] is [true], then it makes
sense to offer a variant of [exec] that returns no just the first match,
but a list of all matches. This is not done here. *)
type
input
=
Char
.
t
Seq
.
t
let
rec
exec
(
a
:
dfa
)
(
q
:
state
)
(
input
:
input
)
(
i
:
int
)
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment