package liquidsoap-lang

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Liquidsoap_lang.PreprocessorSource

Sourcetype tokenizer = unit -> Parser.token * Pos.t
Sourceval eval_ifdefs : (unit -> Parser.token * 'a) -> unit -> Parser.token * 'a
Sourcetype includer_entry = {
  1. tokenizer : tokenizer;
  2. path : string;
  3. channel : in_channel;
}
Sourceexception Skip_optional
Sourceval 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 "..".

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

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

Sourceval dotvar : (unit -> Parser.token * 'a) -> unit -> Parser.token * 'a
Sourceval 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).

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