Skip to content
Snippets Groups Projects
Commit dd018377 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[ivette] package structure

parent a5a8d6f3
No related branches found
No related tags found
No related merge requests found
/* --- Generated Frama-C Server API --- */
/** Dive Services
@packageDocumentation
@module frama-c/dive
*/
import * as Json from 'dome/data/json'
import { addFunctionAlarms } from 'api/dive';
import { addVar } from 'api/dive';
import { clear } from 'api/dive';
import { explore } from 'api/dive';
import { graph } from 'api/dive';
import { hide } from 'api/dive';
import { show } from 'api/dive';
import { variableName } from 'api/dive';
/** The name of variable of the program */
/** Retrieve the whole graph */
/** Erase the graph and start over with an empty one */
/** Add a variable to the graph */
/** Add all alarms of the given function */
/** Explore the graph starting from an existing vertex */
/** Show the dependencies of an existing vertex */
/** Hide the dependencies of an existing vertex */
/* --- Generated Frama-C Server API --- */
/** Ast Services
@packageDocumentation
@module frama-c/kernel/ast
*/
import * as Json from 'dome/data/json'
import { compute } from 'api/kernel/ast';
import { functions } from 'api/kernel/ast';
import { functionsFetch } from 'api/kernel/ast';
import { functionsReload } from 'api/kernel/ast';
import { functionsRow } from 'api/kernel/ast';
import { functionsSig } from 'api/kernel/ast';
import { getFiles } from 'api/kernel/ast';
import { getFunctions } from 'api/kernel/ast';
import { getInfo } from 'api/kernel/ast';
import { marker } from 'api/kernel/ast';
import { markerData } from 'api/kernel/ast';
import { markerDataFetch } from 'api/kernel/ast';
import { markerDataReload } from 'api/kernel/ast';
import { markerDataRow } from 'api/kernel/ast';
import { markerDataSig } from 'api/kernel/ast';
import { markerKind } from 'api/kernel/ast';
import { markerKindTags } from 'api/kernel/ast';
import { printFunction } from 'api/kernel/ast';
import { setFiles } from 'api/kernel/ast';
import { tag } from 'api/kernel/data';
import { text } from 'api/kernel/data';
/** Ensures that AST is computed */
/** Marker kind */
/** Returns all registered tags for the above type. */
/** Markers data */
/** Signal for array [`markerData`](#markerdata) */
/** Data rows for array [`markerData`](#markerdata)
*/
/** Data fetcher for array [`markerData`](#markerdata)
*/
/** Force full reload for array [`markerData`](#markerdata)
*/
/** Localizable AST markers */
type marker = Json.Key<'stmt'> | Json.Key<'decl'> | Json.Key<'lval'>
| Json.Key<'expr'> | Json.Key<'term'> | Json.Key<'global'>
| Json.Key<'property'>;
/** Collect all functions in the AST */
/** Print the AST of a function */
/** AST Functions */
/** Signal for array [`functions`](#functions) */
/** Data rows for array [`functions`](#functions)
*/
/** Data fetcher for array [`functions`](#functions)
*/
/** Force full reload for array [`functions`](#functions)
*/
/** Get textual information about a marker */
/** Get the currently analyzed source file names */
/** Set the source file names to analyze. */
/* --- Generated Frama-C Server API --- */
/** Informations
@packageDocumentation
@module frama-c/kernel/data
*/
import * as Json from 'dome/data/json'
import { markdown } from 'api/kernel/data';
import { tag } from 'api/kernel/data';
import { text } from 'api/kernel/data';
/** Markdown (inlined) text. */
type markdown = string;
/** Rich text format uses `[tag; …text ]` to apply the tag `tag` to the enclosed text. Empty tag `""` can also used to simply group text together. */
type text = null | string | text[];
/** Enum Tag Description */
type tag = { name: string, label: markdown, descr: markdown };
/* --- Generated Frama-C Server API --- */
/** Project Management
@packageDocumentation
@module frama-c/kernel/project
*/
import * as Json from 'dome/data/json'
import { create } from 'api/kernel/project';
import { execOn } from 'api/kernel/project';
import { getCurrent } from 'api/kernel/project';
import { getList } from 'api/kernel/project';
import { getOn } from 'api/kernel/project';
import { projectInfo } from 'api/kernel/project';
import { projectRequest } from 'api/kernel/project';
import { setCurrent } from 'api/kernel/project';
import { setOn } from 'api/kernel/project';
/** Project informations */
type projectInfo = { id: Json.Key<'project'>, name: string, current: boolean
};
/** Request to be executed on the specified project. */
type projectRequest = { project: Json.Key<'project'>, request: string,
data: Json.json };
/** Returns the current project */
/** Switches the current project */
/** Returns the list of all projects */
/** Execute a GET request within the given project */
/** Execute a SET request within the given project */
/** Execute an EXEC request within the given project */
/** Create a new project */
/* --- Generated Frama-C Server API --- */
/** Property Services
@packageDocumentation
@module frama-c/kernel/properties
*/
import * as Json from 'dome/data/json'
import { tag } from 'api/kernel/data';
import { alarms } from 'api/kernel/properties';
import { alarmsTags } from 'api/kernel/properties';
import { propKind } from 'api/kernel/properties';
import { propKindTags } from 'api/kernel/properties';
import { propStatus } from 'api/kernel/properties';
import { propStatusTags } from 'api/kernel/properties';
import { status } from 'api/kernel/properties';
import { statusFetch } from 'api/kernel/properties';
import { statusReload } from 'api/kernel/properties';
import { statusRow } from 'api/kernel/properties';
import { statusSig } from 'api/kernel/properties';
import { source } from 'api/kernel/services';
/** Property Kinds */
/** Returns all registered tags for the above type. */
/** Property Status (consolidated) */
/** Returns all registered tags for the above type. */
/** Alarm Kinds */
/** Returns all registered tags for the above type. */
/** Status of Registered Properties */
/** Signal for array [`status`](#status) */
/** Data rows for array [`status`](#status) */
/** Data fetcher for array [`status`](#status)
*/
/** Force full reload for array [`status`](#status)
*/
/* --- Generated Frama-C Server API --- */
/** Kernel Services
@packageDocumentation
@module frama-c/kernel/services
*/
import * as Json from 'dome/data/json'
import { tag } from 'api/kernel/data';
import { getConfig } from 'api/kernel/services';
import { getLogs } from 'api/kernel/services';
import { load } from 'api/kernel/services';
import { log } from 'api/kernel/services';
import { logkind } from 'api/kernel/services';
import { logkindTags } from 'api/kernel/services';
import { setLogs } from 'api/kernel/services';
import { source } from 'api/kernel/services';
/** Frama-C Kernel configuration */
/** Load a save file. Returns an error, if not successfull. */
/** Source file positions. */
type source = { dir: string, base: string, file: string, line: number };
/** Log messages categories. */
/** Returns all registered tags for the above type. */
/** Message event record. */
/** Turn logs monitoring on/off */
/** Flush the last emitted logs since last call (max 100) */
...@@ -30,21 +30,17 @@ module Md = Markdown ...@@ -30,21 +30,17 @@ module Md = Markdown
type plugin = Kernel | Plugin of string type plugin = Kernel | Plugin of string
type ident = { plugin: plugin; package: string list; name: string } type ident = { plugin: plugin; package: string list; name: string }
let pp_plugin fmt = function
| Kernel -> Format.pp_print_string fmt "Kernel"
| Plugin p -> Format.fprintf fmt "Plugin %s" p
let pp_step fmt a = let pp_step fmt a =
( Format.pp_print_string fmt a ; Format.pp_print_char fmt '.' ) ( Format.pp_print_string fmt a ; Format.pp_print_char fmt '.' )
let pp_plugin_step fmt = function let pp_plugin fmt = function
| Kernel -> () | Kernel -> pp_step fmt "kernel"
| Plugin p -> pp_step fmt p | Plugin p -> pp_step fmt p
let pp_ident fmt { plugin ; package ; name } = let pp_ident fmt { plugin ; package ; name } =
( pp_plugin_step fmt plugin ; ( pp_plugin fmt plugin ;
List.iter (pp_step fmt) package ; List.iter (pp_step fmt) package ;
pp_step fmt name ) Format.pp_print_string fmt name )
(* -------------------------------------------------------------------------- *) (* -------------------------------------------------------------------------- *)
(* --- Name Resolution --- *) (* --- Name Resolution --- *)
...@@ -246,7 +242,7 @@ let name_of_pkginfo ?sep { p_plugin ; p_package } = ...@@ -246,7 +242,7 @@ let name_of_pkginfo ?sep { p_plugin ; p_package } =
name_of_pkg ?sep p_plugin p_package name_of_pkg ?sep p_plugin p_package
let pp_pkgname fmt { p_plugin ; p_package } = let pp_pkgname fmt { p_plugin ; p_package } =
( pp_plugin_step fmt p_plugin ; ( pp_plugin fmt p_plugin ;
List.iter (pp_step fmt) p_package ) List.iter (pp_step fmt) p_package )
(* -------------------------------------------------------------------------- *) (* -------------------------------------------------------------------------- *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment