package frama-c
Module Server.PackageSource
Source
type jtype = | Jany| Jnull| Jboolean| Jnumber| Jstring| Jalpha(*string primarily compared without case
*)| Jtag of string(*single constant string
*)| Jkey of string(*kind of a string used for indexing
*)| Jindex of string(*kind of an integer used for indexing
*)| Joption of jtype| Jdict of jtype(*dictionaries
*)| Jarray of jtype(*order matters
*)| Jtuple of jtype list| Junion of jtype list| Jrecord of (string * jtype) list| Jenum of ident * string list(*type and tags
*)| Jdata of ident * jtype(*type and definition
*)| Jself(*for (simply) recursive types
*)
Source
type tagInfo = {tg_name : string;tg_label : Frama_c_kernel.Markdown.text;tg_descr : Frama_c_kernel.Markdown.text;
}Source
type declInfo = {d_ident : ident;d_descr : Frama_c_kernel.Markdown.text;d_kind : declKindInfo;
}Source
type packageInfo = {p_plugin : plugin;p_package : string list;p_title : string;p_descr : Frama_c_kernel.Markdown.text;p_readme : string option;p_content : declInfo list;
}Source
val package :
?plugin:string ->
?name:string ->
title:string ->
?descr:Frama_c_kernel.Markdown.text ->
?readme:string ->
unit ->
packageSource
val declare :
package:package ->
name:string ->
?descr:Frama_c_kernel.Markdown.text ->
declKindInfo ->
unitRegister the declaration in the Server API. This is only way to obtain identifiers. This ensures identifiers are declared before being used.
Source
val declare_id :
package:package ->
name:string ->
?descr:Frama_c_kernel.Markdown.text ->
declKindInfo ->
identSame as declare but returns the associated identifier.
Replace the declaration for the given name in the package.
Assigns non-classing names for each identifier.
Source
type pp = {self : Frama_c_kernel.Markdown.text;ident : ident -> Frama_c_kernel.Markdown.text;
}Quoted string