package mopsa

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

Frontends

This module manages the frontends of supported languages that translate input source files into a Mopsa Program.program.

type frontend = {
  1. lang : string;
    (*

    Language of the frontend

    *)
  2. parse : string list -> Program.program;
    (*

    Parser function that translates a list of input source files into a Mopsa Program.program

    *)
  3. on_panic : exn -> string list -> float -> unit;
    (*

    Function called when the analysis of a program terminates with an exception, and *when the output is in text mode*. Provided with the exception, list of files and analysis time. Current usecase: provide automated testcase reduction capabilities in the C analysis.

    *)
}

Frontends

val register_frontend : frontend -> unit

Register a new frontend

val find_language_frontend : string -> frontend

Find the frontend of a given language

OCaml

Innovation. Community. Security.