package styled-ppx

  1. Overview
  2. Docs
Type-safe styled components for ReScript and Melange

Install

Dune Dependency

Authors

Maintainers

Sources

styled-ppx-0.56.0.tbz
sha256=f93a08d11849c6010fc3e1c5650d811a14dc60d1f2ea74edb6e2514f12d9f35f
sha512=ad90141c288c368ee60455380706deacc41daffb412e9716c28eadc7aff0360110ca0b953a71b4c58eb6ad33c4dafbc066a9002cc0b17a2fd2dd8a5714f7c668

doc/styled-ppx.css-parser/Styled_ppx_css_parser/Css_lexer/index.html

Module Styled_ppx_css_parser.Css_lexer

module Types = Ast
module Parser = Css_parser
module Location = Ppxlib.Location
exception LexingError of Lexing.position * Lexing.position * string

Signals a lexing error at the provided source location.

val skip_whitespace : bool ref

Makes the lexer be aware of whitespaces or not

type token_with_location = {
  1. txt : (Tokens.token, Tokens.token * Tokens.error) result;
  2. loc : Types.loc;
}
val get_next_token : Sedlexing.lexbuf -> Parser.token
val get_next_tokens_with_location : Sedlexing.lexbuf -> Parser.token * Lexing.position * Lexing.position
val from_string : string -> (token_with_location list, [> `Frozen ]) result
val tokenize : string -> ((Parser.token * Lexing.position * Lexing.position) list, string) result
val render_token : Parser.token -> string
val position_to_string : Lexing.position -> string
val debug_token : (Parser.token * Lexing.position * Lexing.position) -> string
val to_string : (Parser.token * 'a * 'b) list -> string
val to_debug : (Parser.token * Lexing.position * Lexing.position) list -> string
OCaml

Innovation. Community. Security.