+ @Override
+ public String toString() {
+ return "Terminator{" +
+ "regexp='" + regexp + '\'' +
+ ", termination=" + termination +
+ ", group='" + group + '\'' +
+ ", active=" + active +
+ '}';
+ }
+
+ public enum TerminationStrategy {
+ /**
+ * Preserve token that is identified within Terminator and return it for processing. For example when
+ * building language parser, it could be used for statements that you want to capture.
+ */