Repl.FrontendRead-eval-print-loop interactive frontend. Borrows the syntax and semantics from universal.
*********************
type ctx = {ctx_var : Universal.Lang.Frontend.var_context;ctx_fun : Universal.Lang.Frontend.fun_context;}val init_ctx : unit -> ctx***********
val range_of_string : ?org:int -> string -> MopsaLib.rangeval parse_string :
?org:int ->
((Lexing.lexbuf -> Mopsa_universal_parser.U_parser.token) ->
Lexing.lexbuf ->
'a) ->
string ->
'aHelper to parse a string using a menhir parser entry point.
val parse_expr : ?org:int -> ctx -> string -> MopsaLib.exprParse an expression.
val parse_stmt : ?org:int -> ctx -> string -> MopsaLib.stmtParse a statement.
val parse_vardec :
?org:int ->
ctx ->
string ->
ctx * MopsaLib.stmt list * MopsaLib.var listParse a variable declaration.
val parse_fundec : ?org:int -> ctx -> string -> ctx * Universal.Lang.Ast.fundecParse a function declaration.
val parse_var : ?org:int -> ctx -> string -> MopsaLib.varParse a variable.
val classify_input : string -> input_classTry to guess the nature of the input.
************
val print_highlight : string -> MopsaLib.range -> unitPrints a string with some locations highlighted.
*************
val repl_ctx : Mopsa_utils.Core.LineEdit.ctxval pf : ('a, Format.formatter, unit) format -> 'aval repl_loop :
ctx ->
('a, 'b) Framework.Core.Manager.man ->
'a Core.Flow.flow ->
'a Core.Flow.flowval enter_repl :
('a, 'b) Framework.Core.Manager.man ->
'a Core.Flow.flow ->
'a Core.Flow.flowMain loop.
val parse_program : 'a list -> MopsaLib.programIgnore files and return the constant P_REPL program.
module Domain : sig ... end