File tree Expand file tree Collapse file tree 4 files changed +445
-0
lines changed
Expand file tree Collapse file tree 4 files changed +445
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ public List<Error> getErrors() {
6767 private List <Error > errors ;
6868 private List <BackReference > backrefs ;
6969 private int maxbackref ;
70+ private boolean vFlag = false ;
7071
7172 /** Parse the given string as a regular expression. */
7273 public Result parse (String src ) {
@@ -82,6 +83,11 @@ public Result parse(String src) {
8283 return new Result (root , errors );
8384 }
8485
86+ public Result parse (String src , boolean vFlag ) {
87+ this .vFlag = vFlag ;
88+ return parse (src );
89+ }
90+
8591 private static String fromCodePoint (int codepoint ) {
8692 if (Character .isValidCodePoint (codepoint )) return new String (Character .toChars (codepoint ));
8793 // replacement character
Original file line number Diff line number Diff line change 1+ / [ \q { a b c } ] / v;
2+ / [ \q { a b c | c b d | d c b } ] / v;
3+ / [ \q { \} } ] / v;
4+ / [ \q { \{ } ] / v;
5+ / [ \q { c c | \} a | c c } ] / v;
Original file line number Diff line number Diff line change 1+ {
2+ "experimental" : true
3+ }
You can’t perform that action at this time.
0 commit comments