package styled-ppx

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
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.