package pfff

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type token_extended = {
  1. mutable t : Parser_cpp.token;
  2. mutable where : context list;
  3. mutable new_tokens_before : Parser_cpp.token list;
  4. line : int;
  5. col : int;
}
and context =
  1. | InTopLevel
  2. | InClassStruct of string
  3. | InEnum
  4. | InInitializer
  5. | InAssign
  6. | InParameter
  7. | InArgument
  8. | InFunction
val mk_token_extended : Parser_cpp.token -> token_extended
val mk_token_fake : Parser_cpp.token -> token_extended
val rebuild_tokens_extented : token_extended list -> token_extended list
type paren_grouped =
  1. | Parenthised of paren_grouped list list * token_extended list
  2. | PToken of token_extended
type brace_grouped =
  1. | Braceised of brace_grouped list list * token_extended * token_extended option
  2. | BToken of token_extended
type ifdef_grouped =
  1. | Ifdef of ifdef_grouped list list * token_extended list
  2. | Ifdefbool of bool * ifdef_grouped list list * token_extended list
  3. | NotIfdefLine of token_extended list
type 'a line_grouped =
  1. | Line of 'a list
type body_function_grouped =
  1. | BodyFunction of token_extended list
  2. | NotBodyLine of token_extended list
type multi_grouped =
  1. | Braces of token_extended * multi_grouped list * token_extended option
  2. | Parens of token_extended * multi_grouped list * token_extended option
  3. | Angle of token_extended * multi_grouped list * token_extended option
  4. | Tok of token_extended
val split_comma : multi_grouped list -> multi_grouped list list
val mk_parenthised : token_extended list -> paren_grouped list
val mk_braceised : token_extended list -> brace_grouped list
val mk_ifdef : token_extended list -> ifdef_grouped list
val mk_body_function_grouped : token_extended list -> body_function_grouped list
val mk_line_parenthised : paren_grouped list -> paren_grouped line_grouped list
exception UnclosedSymbol of string
val mk_multi : token_extended list -> multi_grouped list
val iter_token_paren : (token_extended -> unit) -> paren_grouped list -> unit
val iter_token_brace : (token_extended -> unit) -> brace_grouped list -> unit
val iter_token_ifdef : (token_extended -> unit) -> ifdef_grouped list -> unit
val iter_token_multi : (token_extended -> unit) -> multi_grouped list -> unit
val tokens_of_paren : paren_grouped list -> token_extended list
val tokens_of_paren_ordered : paren_grouped list -> token_extended list
val tokens_of_multi_grouped : multi_grouped list -> token_extended list
val vof_multi_grouped_list : multi_grouped list -> Ocaml.v
OCaml

Innovation. Community. Security.