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

io.github.ablearthy.tl.parser.VarIdentOpt.scala Maven / Gradle / Ivy

The newest version!
package io.github.ablearthy.tl.parser

import fastparse._
case class VarIdentOpt(internal: Option[String]) extends AnyVal

object VarIdentOpt {
  def parser[_: P]: P[VarIdentOpt] = Ident.varParser.map {
    case "_" => VarIdentOpt(None)
    case s   => VarIdentOpt(Some(s))
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy