package mopsa

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Preprocessor for expanding macros

val debug : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val pp_token : Stdlib.Format.formatter -> Parsing.Parser.token -> unit
val pp_token_list : Stdlib.Format.formatter -> Parsing.Parser.token list -> unit
val stack : (Mopsa_c_parser.Clang_AST.macro * Parsing.Parser.token list) Stdlib.Stack.t
val pp_stack : Stdlib.Format.formatter -> (Mopsa_c_parser.Clang_AST.macro * Parsing.Parser.token list) Stdlib.Stack.t -> unit
val inside_macro : Mopsa_c_parser.Clang_AST.macro -> (Mopsa_c_parser.Clang_AST.macro * 'a) Stdlib.Stack.t -> bool
val next_token : ?ret2caller:bool -> ('a -> Parsing.Parser.token) -> 'a -> Parsing.Parser.token
val tokenize_string : (Stdlib.Lexing.lexbuf -> Parsing.Parser.token) -> string -> Parsing.Parser.token list
val add_parenthesis : Parsing.Parser.token list -> Parsing.Parser.token list
exception AliasFound of string
val parse_directive : ('a -> Parsing.Parser.token) -> 'a -> 'b
type predicate = {
  1. pred_name : string;
  2. pred_params : string list;
  3. pred_body : Parsing.Parser.token list;
}
val parse_predicate : ('a -> Parsing.Parser.token) -> 'a -> predicate option
val parse_predicates : ('a -> Parsing.Parser.token) -> 'a -> predicate list
val predicate_to_macro : predicate -> Mopsa_c_parser.Clang_AST.macro
OCaml

Innovation. Community. Security.