setDelimiters method
Set the delimiters used for marking rule and token tags within concrete syntax used by the tree pattern parser.
@param start The start delimiter. @param stop The stop delimiter. @param escapeLeft The escape sequence to use for escaping a start or stop delimiter.
@exception ArgumentError if start
is null or empty.
@exception ArgumentError if stop
is null or empty.
Implementation
void setDelimiters(String start, String stop, String escapeLeft) {
if (start.isEmpty) {
throw ArgumentError.value(start, 'start', 'cannot be empty');
}
if (stop.isEmpty) {
throw ArgumentError.value(stop, 'stop', 'cannot be empty');
}
this.start = start;
this.stop = stop;
escape = escapeLeft;
}