de.firemage.autograder.treeg.ast.CharacterRange Maven / Gradle / Ivy
package de.firemage.autograder.treeg.ast;
import de.firemage.autograder.treeg.TreePrinter;
public record CharacterRange(char start, char end) implements CharacterClassEntry {
@Override
public String toRegEx() {
return this.start + "-" + this.end;
}
@Override
public void toTree(TreePrinter printer) {
printer.addLine("Range ('" + this.start + "' to '" + end + "')");
}
}