examples/info_string

Types

pub type Argument {
  ArgumentFlag(Flag)
  ArgumentNamed(Named)
}

Constructors

  • ArgumentFlag(Flag)
  • ArgumentNamed(Named)
pub type EvalInfoString {
  EvalInfoString(
    language: String,
    flags: List(Flag),
    named: List(Named),
  )
}

Constructors

  • EvalInfoString(
      language: String,
      flags: List(Flag),
      named: List(Named),
    )
pub type Flag {
  Flag(value: String)
}

Constructors

  • Flag(value: String)
pub type Named {
  Named(name: String, value: String)
}

Constructors

  • Named(name: String, value: String)

Functions

pub fn get_language(info_string: String) -> Option(String)
pub fn info_string_parser() -> fn(Stream(String)) ->
  Result(ParseSuccess(String, EvalInfoString), ParseError(String))
pub fn is_eval(info_string: String) -> Bool
pub fn language_parser() -> fn(Stream(String)) ->
  Result(ParseSuccess(String, Option(String)), ParseError(String))
pub fn parse(info_string: String) -> Result(
  ParseSuccess(String, EvalInfoString),
  ParseError(String),
)
Search Document