package styled-ppx

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception LexingError of Stdlib.Lexing.position * Stdlib.Lexing.position * string

Signals a lexing error at the provided source location.

val skip_whitespace : bool Stdlib.ref

Makes the lexer be aware of whitespaces or not

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

Innovation. Community. Security.