caseapp.core.parser

All-the-arguments parsing stuff.

Mostly revolves around caseapp.core.parser.Parser.

Attributes

Members list

Type members

Classlikes

trait Argument[H]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class StandardArgument[H]
object Argument

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Argument.type
case class ConsParser[H, T <: Tuple](argument: Argument[H], tail: Parser[T]) extends Parser[H *: T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Parser[H *: T]
trait ParserMethods[H *: T]
class Object
trait Matchable
class Any
Show all
case class EitherParser[T](underlying: Parser[T]) extends Parser[Either[Error, T]]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Parser[Either[Error, T]]
trait ParserMethods[Either[Error, T]]
class Object
trait Matchable
class Any
Show all
object EitherParser

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class IgnoreUnrecognizedParser[T](underlying: Parser[T]) extends Parser[T]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Parser[T]
trait ParserMethods[T]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Parser.type
case class MappedParser[T, U](underlying: Parser[T], f: T => U) extends Parser[U]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Parser[U]
trait ParserMethods[U]
class Object
trait Matchable
class Any
Show all
object MappedParser

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case object NilParser extends Parser[EmptyTuple]

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait ParserMethods[EmptyTuple]
class Object
trait Matchable
class Any
Show all
Self type
NilParser.type
case class OptionParser[T](underlying: Parser[T]) extends Parser[Option[T]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Parser[Option[T]]
trait ParserMethods[Option[T]]
class Object
trait Matchable
class Any
Show all
abstract class Parser[+T] extends ParserMethods[T]

Parses arguments, resulting in a T in case of success.

Parses arguments, resulting in a T in case of success.

Type parameters

T:

success result type

Attributes

Companion
object
Supertypes
trait ParserMethods[T]
class Object
trait Matchable
class Any
Known subtypes
class ConsParser[H, T]
class EitherParser[T]
class MappedParser[T, U]
object NilParser.type
class OptionParser[T]
class RecursiveConsParser[H, T]
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Parser.type
abstract class ParserCompanion

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Parser.type
final class ParserOps[T <: Tuple](val parser: Parser[T]) extends AnyVal

Attributes

Companion
object
Supertypes
class AnyVal
trait Matchable
class Any
object ParserOps

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
ParserOps.type
case class ParserWithNameFormatter[T](underlying: Parser[T], f: Formatter[Name]) extends Parser[T]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Parser[T]
trait ParserMethods[T]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class RecursiveConsParser[H, T <: Tuple](headParser: Parser[H], tailParser: Parser[T]) extends Parser[H *: T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Parser[H *: T]
trait ParserMethods[H *: T]
class Object
trait Matchable
class Any
Show all
case class StandardArgument[H](arg: Arg, argParser: ArgParser[H], default: () => Option[H]) extends Argument[H]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Argument[H]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class StopAtFirstUnrecognizedParser[T](underlying: Parser[T]) extends Parser[T]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Parser[T]
trait ParserMethods[T]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type