package liquidsoap-lang

  1. Overview
  2. Docs
type tokenizer = unit -> Parser.token * Pos.t
val eval_ifdefs : (unit -> Parser.token * 'a) -> unit -> Parser.token * 'b
type includer_entry = {
  1. tokenizer : tokenizer;
  2. path : string;
  3. channel : Stdlib.in_channel;
}
exception Skip_optional
val includer : pwd:string -> tokenizer -> unit -> Parser.token * Pos.t

Expand %include statements by inserting the content of files. Filenames are understood relatively to the current directory, which can be a relative path such as "." or "..".

type exp_item =
  1. | String of string
  2. | Expr of tokenizer
  3. | Concat
  4. | RPar
  5. | LPar
  6. | String_of
val expand_string : ?fname:string -> (unit -> Parser.token * Pos.t) -> unit -> Parser.token * Pos.t
type doc_type = [
  1. | `Full
  2. | `Argsof of string list
]
val parse_comments : (unit -> Parser.token * (Stdlib.Lexing.position * Stdlib.Lexing.position)) -> unit -> Parser.token * (Stdlib.Lexing.position * Stdlib.Lexing.position)
val int_meth : (unit -> Parser.token * (Stdlib.Lexing.position * Stdlib.Lexing.position)) -> unit -> Parser.token * (Stdlib.Lexing.position * Stdlib.Lexing.position)

Special token in order to avoid 3.s = "a" to be parsed as a float followed by a record.

val dotvar : (unit -> Parser.token * 'a) -> unit -> Parser.token * 'a
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:string -> pwd:string -> Sedlexing.lexbuf -> unit -> Parser.token * Stdlib.Lexing.position * Stdlib.Lexing.position
OCaml

Innovation. Community. Security.