Module Liquidsoap_lang_parser.Parser_helper

Term constructors used by the grammar's actions.

Helper functions for the parser.

type lexer_let_decoration = [
  1. | `Eval
  2. | `Json_parse
  3. | `None
  4. | `Recursive
  5. | `Replaces
  6. | `Yaml_parse
  7. | `Xml_parse
  8. | `Sqlite_row
  9. | `Sqlite_query
]
type explicit_binding = [
  1. | `Def of Liquidsoap_lang_ast.Parsed_term._let
  2. | `Let of Liquidsoap_lang_ast.Parsed_term._let
]
type binding = [
  1. | explicit_binding
  2. | `Binding of Liquidsoap_lang_ast.Parsed_term._let
]
type let_opt_el = string * Liquidsoap_lang_ast.Parsed_term.t
val clear_comments : unit -> unit
val get_pending_comments : unit -> (pos * string list) list
val append_comment : pos:pos -> string -> unit
val attach_comments : Liquidsoap_lang_ast.Parsed_term.t -> unit
val let_decoration_of_lexer_let_decoration : lexer_let_decoration -> Liquidsoap_lang_ast.Parsed_term.let_decoration
val mk_json_assoc_object_ty : pos:pos -> (Liquidsoap_lang_ast.Parsed_term.type_annotation * string * string * string) -> Liquidsoap_lang_ast.Parsed_term.type_annotation
val args_of_json_parse : pos:pos -> (string * 'a) list -> (string * 'a) list
val render_string_ref : (pos:pos -> (char * string) -> string) Stdlib.ref
val render_string : pos:pos -> (char * string) -> string