parsley.internal.machine.errors.Builders.scala Maven / Gradle / Ivy
The newest version!
package parsley.internal.machine.errors
import parsley.internal.errors.{ErrorItem, Raw, EndOfInput}
private [machine] abstract class ErrorItemBuilder {
final private [errors] def apply(offset: Int, size: Int): ErrorItem = Raw(substring(offset, size))
private [errors] def inRange(offset: Int): Boolean
protected def charAt(offset: Int): Char
protected def substring(offset: Int, size: Int): String
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy