Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fix
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
POTTIER Francois
fix
Commits
a40570ac
Commit
a40570ac
authored
Nov 30, 2018
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment.
parent
75a08d51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
demos/brz/Brzozowski.ml
demos/brz/Brzozowski.ml
+5
-1
No files found.
demos/brz/Brzozowski.ml
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
)
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment