onigleam/transformer

Types

Result of transformation

pub type TransformResult {
  TransformResult(
    ast: ast.Regex,
    capture_names: dict.Dict(String, Int),
    warnings: List(String),
  )
}

Constructors

  • TransformResult(
      ast: ast.Regex,
      capture_names: dict.Dict(String, Int),
      warnings: List(String),
    )

Values

pub fn transform(
  ast: ast.Regex,
  capture_names: dict.Dict(String, Int),
  options: options.TransformOptions,
) -> Result(TransformResult, errors.TransformError)

Transform an Oniguruma AST to be compatible with gleam_regexp

Search Document