Debian Codegraph @

tools/spgen/source/spgen.mli

raw
1 (*
2 * This file is part of Coccinelle, licensed under the terms of the GPL v2.
3 * See copyright.txt in the Coccinelle source code for more information.
4 * The Coccinelle source code can be obtained at http://coccinelle.lip6.fr
5 *)
6
7 (* Driver module for spgen.
8 *
9 * Options:
10 * - config: the name of the file to draw user input from
11 * - output: the name of the file to save the generated file (default: stdout)
12 * - interactive: if true, draw user input interactively
13 * - default: if true, generate without user input (using default values)
14 * - hide: if true, do not output the generated file
15 * - year: current year (for copyright in generated header)
16 *)
17
18 type options
19
20 val make_options :
21 ?config:string ->
22 ?output:string ->
23 ?interactive:bool ->
24 ?default:bool ->
25 ?hide:bool ->
26 ?year:int ->
27 string -> (* filename of cocci file to generate *)
28 options
29
30 val run : options -> unit