package styled-ppx
Type-safe styled components for ReScript and Melange
Install
Dune Dependency
Authors
Maintainers
Sources
styled-ppx-0.59.1.tbz
sha256=8e9aabb5b5f98be5ecf8ba733a0111bcffd5fa2cba85181a58ba791f6d01d454
sha512=fcd0cd606a2630268e8cf38e36dedfdbb1fb6171160808b486d79200c0170460cf32900741eaa7b881ceea644b31ee1dc2a555ad208ccb9ad845c3d86b83085c
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.
val skip_whitespace : bool ref
Makes the lexer be aware of whitespaces or not
type token_with_location = {
txt : (Tokens.token, Tokens.token * Tokens.error) result;
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
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>