caffeine_lang/parser/artifacts

Types

pub type Artifact {
  Artifact(
    name: String,
    version: Semver,
    inherited_params: dict.Dict(
      String,
      accepted_types.AcceptedTypes,
    ),
    required_params: dict.Dict(
      String,
      accepted_types.AcceptedTypes,
    ),
  )
}

Constructors

pub type Semver {
  Semver(major: Int, minor: Int, patch: Int)
}

Constructors

  • Semver(major: Int, minor: Int, patch: Int)

Values

pub fn parse_from_file(
  file_path: String,
) -> Result(List(Artifact), errors.CompilationError)

Parses an artifact from an artifacts.json file.

pub fn parse_standard_library() -> Result(
  List(Artifact),
  errors.CompilationError,
)

Parses the embedded standard library artifacts.

Search Document