All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 + "')");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy