package chamo

  1. Overview
  2. Docs
A kind of emacs-like editor, using OCaml instead of lisp

Install

Dune Dependency

Authors

Maintainers

Sources

chamo-4.0.tar.bz2
md5=a64723762c930c626044655763042677
sha512=f83be446a5b0f1178a2e854691973da41d8a1ada12098e9f0d65bde5301a6242a79a58dfb9b2f244a8548b01453eba4788d06b8ab62b8a04b29b9f6cedc31b54

doc/chamo.byte/Chamo_byte/Eval/index.html

Module Chamo_byte.EvalSource

OCaml code evaluation. This module is present only in the bytecode version of chamo and defines commands to evaluate OCaml code in the editor itself, to modify is behaviour, add commands, etc...

This module also adds a command line option --run taking a filename whose contents must be evaluated at launch time.

Sourceval init_file : string

The user's init file evaluated at launch time. This file should contain OCaml source code.

Sourceval prompt_eval : string array -> unit Lwt.t

This is the code of the default "prompt_eval" command. It uses the active window's minibuffer to ask the user for some code to evaluate.

Sourceval eval_file : string array -> unit Lwt.t

This is the code of the default "eval_file" command. It tries to evaluate the file whose name is in first parameter. If there is no argument, then the active window's minibuffer is used to make the user select a file.

Sourceval load_file : string array -> unit Lwt.t

This is the code of the default "load_file" command. It tries to load the ocaml bytecode file whose name is in first parameter. If there is no argument, then the active window's minibuffer is used to make the user select a file.

Sourceval eval_ocaml : string array -> unit

Code of the default "eval" command. It evaluates the OCaml source code given as first argument. If no argument is given, then the "prompt_eval" command is called.

OCaml

Innovation. Community. Security.