Module Liquidsoap_lang_parser.Preprocessor

Token-level preprocessing: string interpolation and conditionals.

type interpolation = {
  1. sep : char;
  2. mutable depth : int;
}
val uminus : (unit -> Parser.token * 'a) -> unit -> Parser.token * 'a

Change MINUS to UMINUS if the minus is not preceded by a number (or an expression which could produce a number).

val strip_newlines : (unit -> Parser.token * ('a * 'b)) -> unit -> Parser.token * ('a * 'b)
val mk_tokenizer : ?fname:??? -> Sedlexing.lexbuf -> unit -> Parser.token * Stdlib.Lexing.position * Stdlib.Lexing.position