File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ into suitable invocations of the
13
13
[ Re library] ( https://github.com/ocaml/ocaml-re ) . The patterns are plain
14
14
strings of the form accepted by ` Re_pcre ` , except groups can be bound to
15
15
variables using the syntax ` (?<var>...) ` . The type of ` var ` will be
16
- ` string ` if a match is guaranteed, and ` string option ` if the variable is
17
- bound to an optionally matched group.
16
+ ` string ` if a match is of the groups is guaranteed given a match of the
17
+ whole pattern, and ` string option ` if the variable is bound to or nested
18
+ below an optionally matched group.
18
19
19
20
## Example
20
21
@@ -39,3 +40,14 @@ let () = Lwt_main.run begin
39
40
Lwt_stream.iter_s check_line (Lwt_io.lines_of_file "/var/log/syslog")
40
41
end
41
42
```
43
+
44
+ ### Limitations
45
+
46
+ - The processor is currently new and not well tested. Please break it and
47
+ file bug reports.
48
+ - Pattern guards are not implemented.
49
+ - Optional patterns due to ` ? ` , ` * ` , and ` {0,n} ` are detected. If you find
50
+ other reasons a ` Re_pcre ` pattern may opt, please file a bug report.
51
+ - Is it feasible to cover any reasonable ground with exhaustiveness checks?
52
+ No attempt is currently made, and no warning is issued for a missing
53
+ match-all case.
You can’t perform that action at this time.
0 commit comments