File: hello.ml

package info (click to toggle)
obrowser 1.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,216 kB
  • ctags: 3,498
  • sloc: ml: 13,505; makefile: 343; sh: 11
file content (9 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
(* Js is the module containing the JavaScript/DOM interface
 * It is included in the modified standard library provided in the package *)
open Js ;;

(* alert simply binds the JavaScript function window.alert (); *)
alert "Hello World" ;;

(* At this point, the VM is stopped.
 * However, it can be resumed by events as we'll show later *)