io.github.ablearthy.tl.parser.Utils.scala Maven / Gradle / Ivy
The newest version!
package io.github.ablearthy.tl.parser
import fastparse._
import NoWhitespace._
object Utils {
def number[_: P]: P[Int] = P(CharIn("0-9").rep(1).!.map(_.toInt))
def exclMark[_: P]: P[Boolean] = P("!".!.?).map(_.isDefined)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy