parsley.internal.machine.errors.Builders.scala Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2020 Parsley Contributors
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package parsley.internal.machine.errors
import parsley.internal.errors.{UnexpectItem, UnexpectRaw}
private [machine] abstract class ErrorItemBuilder {
final private [errors] def apply(offset: Int, size: Int): UnexpectItem = new UnexpectRaw(iterableFrom(offset), size)
private [errors] def inRange(offset: Int): Boolean
protected def codePointAt(offset: Int): Int
protected def iterableFrom(offset: Int): Iterable[Char]
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy