parsley.internal.errors.CaretWidth.scala Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2020 Parsley Contributors
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package parsley.internal.errors
private [parsley] sealed abstract class CaretWidth {
def width: Int
def isFlexible: Boolean
}
private [parsley] class FlexibleCaret(val width: Int) extends CaretWidth {
def isFlexible: Boolean = true
}
private [parsley] class RigidCaret(val width: Int) extends CaretWidth {
def isFlexible: Boolean = false
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy