ocp-indent-nlfork

ocp-indent library, "newline tokens" fork
IN THIS PACKAGE
Module Approx_lexer . Simple
include module type of struct include Simple_tokens end
type token = Simple_tokens.token =
| AMPERAMPER
| AMPERSAND
| AND
| AS
| ASSERT
| BACKQUOTE
| BANG
| BAR
| BARBAR
| BARRBRACKET
| BEGIN
| CHAR of char Approx_tokens.overflow
| CLASS
| COLON
| COLONCOLON
| COLONEQUAL
| COLONGREATER
| CONSTRAINT
| DO
| DONE
| DOT
| DOTDOT
| DOWNTO
| ELSE
| END
| EQUAL
| EXCEPTION
| EXTERNAL
| FALSE
| FLOAT of string
| FOR
| FUN
| FUNCTION
| FUNCTOR
| GREATER
| GREATERRBRACE
| GREATERRBRACKET
| IF
| IN
| INCLUDE
| INFIXOP0 of string
| INFIXOP1 of string
| INFIXOP2 of string
| INFIXOP3 of string
| INFIXOP4 of string
| INHERIT
| INITIALIZER
| INT of int Approx_tokens.overflow
| INT32 of int32 Approx_tokens.overflow
| INT64 of int64 Approx_tokens.overflow
| LABEL of string
| LAZY
| LBRACE
| LBRACELESS
| LBRACKET
| LBRACKETBAR
| LBRACKETLESS
| LBRACKETGREATER
| LBRACKETPERCENT
| LBRACKETPERCENTPERCENT
| LBRACKETAT
| LBRACKETATAT
| LBRACKETATATAT
| LESS
| LESSMINUS
| LET
| LIDENT of string
| LINE_DIRECTIVE of string
| LPAREN
| MATCH
| METHOD
| MINUS
| MINUSDOT
| MINUSGREATER
| MODULE
| MUTABLE
| NATIVEINT of nativeint Approx_tokens.overflow
| NEW
| OBJECT
| OF
| OPEN
| OPTLABEL of string
| OR
| PLUS
| PLUSDOT
| PREFIXOP of string
| PRIVATE
| QUESTION
| QUESTIONQUESTION
| QUOTE
| RBRACE
| RBRACKET
| REC
| RPAREN
| SEMI
| SEMISEMI
| SHARP
| SIG
| STAR
| STRUCT
| THEN
| TILDE
| TO
| TRUE
| TRY
| TYPE
| TYPEVAR
| UIDENT of string
| UNDERSCORE
| VAL
| VIRTUAL
| WHEN
| WHILE
| WITH
| SPACES
| ILLEGAL_CHAR of char
| COMMA
| COMMENT
| STRING
| PPX_QUOTATION
| P4_QUOTATION
| EOF
type t = {
token : Simple_tokens.token;
substr : string;
region : Lexing.position * Lexing.position;
}
val string_of_postion : Lexing.position -> string
val zero : Lexing.position
val simplify_string_token : context -> Lexing.lexbuf -> Lexing.position -> string -> t * context
val simplify_ppx_token : context -> Lexing.lexbuf -> Lexing.position -> string -> t * context
val simplify_p4_token : context -> Lexing.lexbuf -> Lexing.position -> string -> t * context
val simplify_comment_token : context -> Lexing.lexbuf -> Lexing.position -> string -> t * context
val simplify_verb_token : context -> Lexing.lexbuf -> string -> string * context
val simplify_code_token : context -> Lexing.lexbuf -> string -> string * context
val token : context -> Lexing.lexbuf -> (t * context) option