File tree Expand file tree Collapse file tree 12 files changed +4061
-1649
lines changed
Expand file tree Collapse file tree 12 files changed +4061
-1649
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ public SourceLocation(String source, Position start) {
2121 this (source , start , null );
2222 }
2323
24+ public SourceLocation (SourceLocation that ) {
25+ this (that .source , that .start , that .end );
26+ }
27+
2428 /**
2529 * The source code contained in this location.
2630 */
Original file line number Diff line number Diff line change 77 * An error encountered while parsing a regular expression.
88 */
99public class Error extends SourceElement {
10+ public static final int UNEXPECTED_EOS = 0 ;
11+ public static final int UNEXPECTED_CHARACTER = 1 ;
12+ public static final int EXPECTED_DIGIT = 2 ;
13+ public static final int EXPECTED_HEX_DIGIT = 3 ;
14+ public static final int EXPECTED_CONTROL_LETTER = 4 ;
15+ public static final int EXPECTED_CLOSING_PAREN = 5 ;
16+ public static final int EXPECTED_CLOSING_BRACE = 6 ;
17+ public static final int EXPECTED_EOS = 7 ;
18+ public static final int OCTAL_ESCAPE = 8 ;
19+ public static final int INVALID_BACKREF = 9 ;
20+ public static final int EXPECTED_RBRACKET = 10 ;
21+ public static final int EXPECTED_IDENTIFIER = 11 ;
22+ public static final int EXPECTED_CLOSING_ANGLE = 12 ;
23+
1024 private final int code ;
1125
1226 public Error (SourceLocation loc , Number code ) {
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public class Main {
3939 * such a way that it may produce different tuples for the same file under the same
4040 * {@link ExtractorConfig}.
4141 */
42- public static final String EXTRACTOR_VERSION = "2018-10-16 " ;
42+ public static final String EXTRACTOR_VERSION = "2018-11-12 " ;
4343
4444 public static final Pattern NEWLINE = Pattern .compile ("\n " );
4545
You can’t perform that action at this time.
0 commit comments