open! Stdune

type var_syntax = Types.Template.var_syntax =
  | Dollar_brace
  | Dollar_paren
  | Percent

type var = Types.Template.var =
  { loc: Loc.t
  ; name: string
  ; payload: string option
  ; syntax: var_syntax
  }

type part = Types.Template.part =
  | Text of string
  | Var of var

type t = Types.Template.t =
  { quoted: bool
  ; parts: part list
  ; loc: Loc.t
  }

val to_string : t -> syntax:Atom.syntax -> string
val string_of_var : var -> string

val pp : Atom.syntax -> Format.formatter -> t -> unit

val pp_split_strings : Format.formatter -> t -> unit

val remove_locs : t -> t
