48ff07bab997dc074dccc6b9db502b4feafbff1b
[bpt/coccinelle.git] / ocaml / coccilib.mli
1
2 type pos = { current_element : string;
3 file :string ;
4 line : int;
5 col : int;
6 line_end : int;
7 col_end : int; }
8
9 type param_type =
10 Pos of pos list
11 | Str of string
12 | Type of Ast_c.fullType
13 | Init of Ast_c.initialiser
14 | Int of int
15 | Param of Ast_c.parameterType
16 | ParamList of Ast_c.parameterType Ast_c.wrap2 list
17 | Expr of Ast_c.expression
18 | ExprList of Ast_c.argument Ast_c.wrap2 list
19 | Decl of Ast_c.declaration
20 | Field of Ast_c.field
21 | FieldList of Ast_c.field list
22 | Stmt of Ast_c.statement
23
24 val fcts : (string, param_type list -> string ref list -> unit) Hashtbl.t
25
26 (* ---------------------------------------------------------------------- *)
27 (* Match management *)
28
29 val inc_match : bool ref
30 val include_match : bool -> unit
31 val dir : unit -> string