package ocp-indent-nlfork

  1. Overview
  2. Docs
ocp-indent library, "newline tokens" fork

Install

Dune Dependency

Authors

Maintainers

Sources

nlfork-1.5.4.tar.gz
md5=e9d1a7de64e169536ddf16023b111409
sha512=4637eb4ac2a47001f7b236ad7fdcbf7fe1a659e947a46aacd7ff2f2e386c82c423468aabd6adcabed8caf869d4a8f3f592ea1134b4ba77b7d37080e01cc497dc

doc/ocp-indent-nlfork.lexer/Approx_lexer/Simple/index.html

Module Approx_lexer.SimpleSource

include module type of struct include Simple_tokens end
Sourcetype token = Simple_tokens.token =
  1. | AMPERAMPER
  2. | AMPERSAND
  3. | AND
  4. | AS
  5. | ASSERT
  6. | BACKQUOTE
  7. | BANG
  8. | BAR
  9. | BARBAR
  10. | BARRBRACKET
  11. | BEGIN
  12. | CHAR of char Approx_tokens.overflow
  13. | CLASS
  14. | COLON
  15. | COLONCOLON
  16. | COLONEQUAL
  17. | COLONGREATER
  18. | CONSTRAINT
  19. | DO
  20. | DONE
  21. | DOT
  22. | DOTDOT
  23. | DOWNTO
  24. | ELSE
  25. | END
  26. | EQUAL
  27. | EXCEPTION
  28. | EXTERNAL
  29. | FALSE
  30. | FLOAT of string
  31. | FOR
  32. | FUN
  33. | FUNCTION
  34. | FUNCTOR
  35. | GREATER
  36. | GREATERRBRACE
  37. | GREATERRBRACKET
  38. | IF
  39. | IN
  40. | INCLUDE
  41. | INFIXOP0 of string
  42. | INFIXOP1 of string
  43. | INFIXOP2 of string
  44. | INFIXOP3 of string
  45. | INFIXOP4 of string
  46. | INHERIT
  47. | INITIALIZER
  48. | INT of int Approx_tokens.overflow
  49. | INT32 of int32 Approx_tokens.overflow
  50. | INT64 of int64 Approx_tokens.overflow
  51. | LABEL of string
  52. | LAZY
  53. | LBRACE
  54. | LBRACELESS
  55. | LBRACKET
  56. | LBRACKETBAR
  57. | LBRACKETLESS
  58. | LBRACKETGREATER
  59. | LBRACKETPERCENT
  60. | LBRACKETPERCENTPERCENT
  61. | LBRACKETAT
  62. | LBRACKETATAT
  63. | LBRACKETATATAT
  64. | LESS
  65. | LESSMINUS
  66. | LET
  67. | LIDENT of string
  68. | LINE_DIRECTIVE of string
  69. | LPAREN
  70. | MATCH
  71. | METHOD
  72. | MINUS
  73. | MINUSDOT
  74. | MINUSGREATER
  75. | MODULE
  76. | MUTABLE
  77. | NATIVEINT of nativeint Approx_tokens.overflow
  78. | NEW
  79. | OBJECT
  80. | OF
  81. | OPEN
  82. | OPTLABEL of string
  83. | OR
  84. | PLUS
  85. | PLUSDOT
  86. | PREFIXOP of string
  87. | PRIVATE
  88. | QUESTION
  89. | QUESTIONQUESTION
  90. | QUOTE
  91. | RBRACE
  92. | RBRACKET
  93. | REC
  94. | RPAREN
  95. | SEMI
  96. | SEMISEMI
  97. | SHARP
  98. | SIG
  99. | STAR
  100. | STRUCT
  101. | THEN
  102. | TILDE
  103. | TO
  104. | TRUE
  105. | TRY
  106. | TYPE
  107. | TYPEVAR
  108. | UIDENT of string
  109. | UNDERSCORE
  110. | VAL
  111. | VIRTUAL
  112. | WHEN
  113. | WHILE
  114. | WITH
  115. | SPACES
  116. | ILLEGAL_CHAR of char
  117. | COMMA
  118. | COMMENT
  119. | STRING
  120. | PPX_QUOTATION
  121. | P4_QUOTATION
  122. | EOF
Sourcetype t = {
  1. token : Simple_tokens.token;
  2. substr : string;
  3. region : Lexing.position * Lexing.position;
}
Sourceval string_of_postion : Lexing.position -> string
Sourceval simplify_string_token : context -> Lexing.lexbuf -> Lexing.position -> string -> t * context
Sourceval simplify_ppx_token : context -> Lexing.lexbuf -> Lexing.position -> string -> t * context
Sourceval simplify_p4_token : context -> Lexing.lexbuf -> Lexing.position -> string -> t * context
Sourceval simplify_comment_token : context -> Lexing.lexbuf -> Lexing.position -> string -> t * context
Sourceval simplify_verb_token : context -> Lexing.lexbuf -> string -> string * context
Sourceval simplify_code_token : context -> Lexing.lexbuf -> string -> string * context
Sourceval token : context -> Lexing.lexbuf -> (t * context) option
OCaml

Innovation. Community. Security.