package css

  1. Overview
  2. Docs
CSS parser and printer

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-css-0.2.0.tar.bz2
md5=ceee290f230eb786d59de6ffcf692695
sha512=9ee5de92d764a5bb5b7dac1bc48d5892ccd8425d4226842148aae3322bf7335a738cc695fb36a29e3f90a487750a922f7301f44b6e60bb8954e4ad508ae60116

doc/css/Css/Sp/index.html

Module Css.SpSource

Statement parsers.

Sourceval block_ : (T.ctx -> 'a Angstrom.t) -> (T.ctx -> 'b Angstrom.t) -> (T.ctx -> 'c Angstrom.t) -> T.ctx -> 'c Angstrom.t
Sourceval skip_to_next_prop : unit Angstrom.t
Sourceval skip_to_next_selector : unit Angstrom.t
Sourceval check_no_more_prop_value : T.ctx -> unit Angstrom.t
Sourceval check_no_more_selector_def : T.ctx -> unit Angstrom.t
Sourceval qname : T.ctx -> ((string * string) * T.loc) Angstrom.t
Sourceval ident_or_star : T.ctx -> string Angstrom.t
Sourceval revert_selector : [< `Adjacent of 'a S.single_selector * [< `Adjacent of 'a S.single_selector * 'b | `Child of 'a S.single_selector * 'b | `Inside of 'a S.single_selector * 'b | `Sibling of 'a S.single_selector * 'b | `Single of 'a S.single_selector ] as 'b | `Child of 'a S.single_selector * [< `Adjacent of 'a S.single_selector * 'c | `Child of 'a S.single_selector * 'c | `Inside of 'a S.single_selector * 'c | `Sibling of 'a S.single_selector * 'c | `Single of 'a S.single_selector ] as 'c | `Inside of 'a S.single_selector * [< `Adjacent of 'a S.single_selector * 'd | `Child of 'a S.single_selector * 'd | `Inside of 'a S.single_selector * 'd | `Sibling of 'a S.single_selector * 'd | `Single of 'a S.single_selector ] as 'd | `Sibling of 'a S.single_selector * [< `Adjacent of 'a S.single_selector * 'e | `Child of 'a S.single_selector * 'e | `Inside of 'a S.single_selector * 'e | `Sibling of 'a S.single_selector * 'e | `Single of 'a S.single_selector ] as 'e | `Single of 'a S.single_selector ] -> 'a S.selector
Sourceval sel_qname : T.ctx -> ((string * string) * T.loc) Angstrom.t
Sourceval sel_id : T.ctx -> (string * T.loc) Angstrom.t
Sourceval sel_pseudo_class : T.ctx -> [< `Adjacent of string S.single_selector * [< `Adjacent of string S.single_selector * 'a | `Child of string S.single_selector * 'a | `Inside of string S.single_selector * 'a | `Sibling of string S.single_selector * 'a | `Single of string S.single_selector ] as 'a | `Child of string S.single_selector * [< `Adjacent of string S.single_selector * 'b | `Child of string S.single_selector * 'b | `Inside of string S.single_selector * 'b | `Sibling of string S.single_selector * 'b | `Single of string S.single_selector ] as 'b | `Inside of string S.single_selector * [< `Adjacent of string S.single_selector * 'c | `Child of string S.single_selector * 'c | `Inside of string S.single_selector * 'c | `Sibling of string S.single_selector * 'c | `Single of string S.single_selector ] as 'c | `Sibling of string S.single_selector * [< `Adjacent of string S.single_selector * 'd | `Child of string S.single_selector * 'd | `Inside of string S.single_selector * 'd | `Sibling of string S.single_selector * 'd | `Single of string S.single_selector ] as 'd | `Single of string S.single_selector ] Angstrom.t -> (string S.pseudo_class * T.loc) Angstrom.t
Sourceval sel_pseudo_elt : T.ctx -> (string * T.loc) Angstrom.t
Sourceval sel_attr_value : T.ctx -> 'a S.qname -> 'a S.attr_selector Angstrom.t
Sourceval sel_attr : T.ctx -> string S.attr_selector Angstrom.t
Sourceval sel_attribute : T.ctx -> (string S.attr_selector * T.loc) Angstrom.t
Sourceval sel_attributes : T.ctx -> (string S.attr_selector * T.loc) list Angstrom.t
Sourceval single_selector : T.ctx -> [< `Adjacent of string S.single_selector * [< `Adjacent of string S.single_selector * 'a | `Child of string S.single_selector * 'a | `Inside of string S.single_selector * 'a | `Sibling of string S.single_selector * 'a | `Single of string S.single_selector ] as 'a | `Child of string S.single_selector * [< `Adjacent of string S.single_selector * 'b | `Child of string S.single_selector * 'b | `Inside of string S.single_selector * 'b | `Sibling of string S.single_selector * 'b | `Single of string S.single_selector ] as 'b | `Inside of string S.single_selector * [< `Adjacent of string S.single_selector * 'c | `Child of string S.single_selector * 'c | `Inside of string S.single_selector * 'c | `Sibling of string S.single_selector * 'c | `Single of string S.single_selector ] as 'c | `Sibling of string S.single_selector * [< `Adjacent of string S.single_selector * 'd | `Child of string S.single_selector * 'd | `Inside of string S.single_selector * 'd | `Sibling of string S.single_selector * 'd | `Single of string S.single_selector ] as 'd | `Single of string S.single_selector ] Angstrom.t -> string S.single_selector Angstrom.t
Sourceval selector_ : T.ctx -> [ `Adjacent of string S.single_selector * 'a | `Child of string S.single_selector * 'a | `Inside of string S.single_selector * 'a | `Sibling of string S.single_selector * 'a | `Single of string S.single_selector ] as 'a Angstrom.t
Sourceval selector : T.ctx -> (string S.selector * T.loc) Angstrom.t
Sourceval selectors : T.ctx -> (string S.selector * T.loc) list Angstrom.t
Sourceval declaration : (module P.Prop_space) -> T.ctx -> P.binding list -> P.binding list Angstrom.t
Sourceval declarations : (module P.Prop_space) -> T.ctx -> P.binding list -> P.binding list Angstrom.t
Sourceval declaration_block : (module P.Prop_space) -> T.ctx -> (P.binding list * string S.nested_rule list) Angstrom.t
Sourceval rule : (module P.Prop_space) -> T.ctx -> string S.rule_ Angstrom.t
Sourceval nested_rule_rel : T.ctx -> S.nested_rule_rel Angstrom.t
Sourceval nested_rule : (module P.Prop_space) -> T.ctx -> string S.nested_rule_ Angstrom.t
Sourceval at_namespace : T.ctx -> 'a S.at_rule_ Angstrom.t
Sourceval at_charset : T.ctx -> 'a S.at_rule_ Angstrom.t
Sourceval layer_name : T.ctx -> string list Angstrom.t
Sourceval at_import_layer : T.ctx -> string list option Angstrom.t
Sourceval at_import : T.ctx -> 'a S.at_rule_ Angstrom.t
Sourceval at_layer : (module P.Prop_space) -> T.ctx -> string S.at_rule_ Angstrom.t
Sourceval at_media : (module P.Prop_space) -> T.ctx -> string S.at_rule_ Angstrom.t
Sourceval at_other : (module P.Prop_space) -> T.ctx -> string S.at_rule_ Angstrom.t
Sourceval at_rule : (module P.Prop_space) -> T.ctx -> string S.at_rule_ Angstrom.t
Sourceval statement : (module P.Prop_space) -> T.ctx -> string S.statement Angstrom.t
Sourceval statements : (module P.Prop_space) -> T.ctx -> string S.statement list Angstrom.t
OCaml

Innovation. Community. Security.