Module Ast.FrontendSource

Frontends

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

Sourcetype 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

    *)
}

Frontends

Sourceval register_frontend : frontend -> unit

Register a new frontend

Sourceval find_language_frontend : string -> frontend

Find the frontend of a given language