package mopsa

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

Universal frontend translates the parser's AST into Framework's AST.

module NameG : sig ... end
module T = Ast
module Float = Mopsa.ItvUtils.Float
type var_context = (int * Mopsa.typ) MS.t
type fun_context = T.fundec MS.t
val builtin_functions : Ast.fun_builtin list
val from_extent : U.extent -> Mopsa.Location.range
type uvar = {
  1. uvar_range : Mopsa.range;
  2. uvar_uid : int;
  3. uvar_orig_name : string;
  4. uvar_uniq_name : string;
}
type Mopsa.var_kind +=
  1. | V_uvar of uvar
val from_var : string -> U.extent -> var_context -> Mopsa.var
val unify_typ : Mopsa.typ -> Mopsa.typ -> Mopsa.typ
val to_typ : Mopsa.typ -> Mopsa.expr -> Mopsa.expr
val from_binop : Mopsa.typ -> U.binary_op -> Mopsa.operator
val from_unop : Mopsa.typ -> U.unary_op -> Mopsa.operator
val from_expr : U.expr -> U.extent -> var_context -> fun_context option -> Mopsa.expr
val from_stmt : U.stat -> U.extent -> var_context -> fun_context option -> Mopsa.stmt
val check_declaration_list : U.declaration U.ext list -> unit
val aux : U.declaration U.ext -> U.declaration U.ext list -> unit
val var_ctx_of_declaration : Mopsa_universal_parser.U_ast.declaration U.ext list -> var_context -> (int * Mopsa.typ) MS.t * Mopsa.var list
val var_ctx_init_of_declaration : Mopsa_universal_parser.U_ast.declaration U.ext list -> var_context -> fun_context option -> (int * Mopsa.typ) MS.t option -> (int * Mopsa.typ) MS.t * Mopsa.stmt list * Mopsa.var list
val var_ctx_of_function : var_context -> U.fundec -> (int * Mopsa.typ) MS.t
val var_init_of_function : var_context -> (int * Mopsa.typ) MS.t MS.t -> fun_context -> U.fundec -> (int * Mopsa.typ) MS.t * Mopsa.stmt list
val from_fundec : U.fundec -> var_context -> T.fundec
val add_body : fun_context -> string -> Mopsa.stmt -> unit
val parse_program : string list -> Mopsa.program
OCaml

Innovation. Community. Security.