package styled-ppx

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

styled-ppx-0.61.0.tbz
sha256=c6eba770e9e9bb9002bf3f759f99ebcec6d7b4132c6c2ad562886c88b6839bab
sha512=8a1776181f6ef292518a0b96b1fae7927cf5767dee75dc04bc05d99d297866e45a5943455bea9ce500a04a635bd179d2b2bec8bccebc55dc1e696a23b3efad69

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

Module Styled_ppx_css_parser.Lexer

exception LexingError of Lexing.position * Lexing.position * string

Signals a lexing error at the provided source location.

type token_with_location = {
  1. txt : (Tokens.token, Tokens.token * Tokens.error) result;
  2. loc : Ast.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