Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

copyrights, miscellany

git-svn-id: http://ocamljs.googlecode.com/svn/trunk@158 27578800-e353-0410-a23a-a7c9f63c6ccd
  • Loading branch information...
commit fe7ebed005e239f6d029071c3e69ee76f9d58011 1 parent 2fe400c
Jake Donham authored
View
8 LICENSE
@@ -1,13 +1,13 @@
In the following, "the Library" refers to all files marked "Copyright
-(C) 2007 Skydeck, Inc" in the following directories and their
+(C) 2007-9 Skydeck, Inc" in the following directories and their
sub-directories:
- src/libs
+ src/ (excluding src/jscomp)
-and "the Compiler" refers to all files marked "Copyright (C) 2007
+and "the Compiler" refers to all files marked "Copyright (C) 2007-9
Skydeck, Inc" in the following directories and their sub-directories:
- src/ocamljs
+ src/jscomp
The Compiler is distributed under the terms of the Q Public License
version 1.0 with a change to choice of law (included below).
View
2  Makefile
@@ -41,4 +41,4 @@ examples:
gcode:
rsync -a --delete --exclude '.svn/' doc/ ../doc/
- rsync -a --delete --exclude '.svn/' --include '*/' --include '*.html' --include '*.js' --include '*.css' --include '*.png' --exclude '*' examples/ ../examples/
+ rsync -a --delete --exclude '.svn/' --include '*/' --include '*.html' --include '*.ml' --include '*.js' --include '*.css' --include '*.png' --exclude '*' examples/ ../examples/
View
10 README
@@ -1,2 +1,8 @@
-This is ocamljs, a Javascript back-end for ocamlc, version 0.1. See
-doc/index.html for details and installation instructions.
+This is ocamljs, a Javascript back-end for ocamlc. See
+
+ http://code.google.com/p/ocamljs/
+
+for details and installation instructions.
+
+Ocamljs is written by Jake Donham with contributions from Haoyang Wang
+and Mike Wells.
View
3  TODO
@@ -43,7 +43,4 @@ jscomp
all
docs, wiki
- links to source in example index page
- IFDEF DEBUG console on all examples
check readmes and licenses
- clean up compile warnings
View
2  configure
@@ -41,7 +41,7 @@ get_path () {
# defaults:
set_defaults () {
- srcdir="/usr/local/src/ocaml-3.10.2"
+ srcdir="/usr/local/src/ocaml-3.11.0"
bindir=`dirname $ocamlc`
libdir=`ocamlc -where`
}
View
18 examples/index.html
@@ -11,12 +11,12 @@
<li>
<a href="dom/canvas/index.html">canvas</a>, a simple example taken from
the <a href="https://developer.mozilla.org/En/Canvas_tutorial">Mozilla
- canvas tutorial</a>.
+ canvas tutorial</a>. (<a href="dom/canvas/">source</a>)
</li>
<li>
<a href="dom/minesweeper/index.html">minesweeper</a>, adapted from
the <a href="http://www.pps.jussieu.fr/~canou/obrowser/examples/minesweeper/">O'Browser
- example</a>.
+ example</a>. (<a href="dom/minesweeper/">source</a>)
</li>
</ul>
@@ -28,24 +28,24 @@
</p>
<ul>
<li>
- <a href="froc-dom/clicks/index.html">clicks</a>
+ <a href="froc-dom/clicks/index.html">clicks</a> (<a href="froc-dom/clicks/">source</a>)
</li>
<li>
<a href="froc-dom/wheres-the-mouse/index.html">wheres-the-mouse</a>,
adapted from
the <a href="http://www.flapjax-lang.org/demos/wheres-the-mouse/">Flapjax
- demo</a>.
+ demo</a>. (<a href="froc-dom/wheres-the-mouse/">source</a>)
</li>
<li>
<a href="froc-dom/follow-the-mouse/index.html">follow-the-mouse</a>,
adapted from
the <a href="http://www.flapjax-lang.org/demos/follow-the-mouse/">Flapjax
- demo</a>.
+ demo</a>. (<a href="froc-dom/follow-the-mouse/">source</a>)
</li>
<li>
<a href="froc-dom/orbit-mouse/index.html">orbit-mouse</a>, adapted from
the <a href="http://docs.plt-scheme.org/frtime/">FrTime</a>
- example.
+ example. (<a href="froc-dom/orbit-mouse/">source</a>)
</li>
</ul>
@@ -58,9 +58,9 @@
Gears <a href="http://code.google.com/apis/gears/sample.html">samples</a>.
</p>
<ul>
- <li><a href="gears/database/index.html">database</a></li>
- <li><a href="gears/file_system/index.html">file_system</a></li>
- <li><a href="gears/geolocation/index.html">geolocation</a></li>
+ <li><a href="gears/database/index.html">database</a> (<a href="gears/database/">source</a>)</li>
+ <li><a href="gears/file_system/index.html">file_system</a> (<a href="gears/file_system/">source</a>)</li>
+ <li><a href="gears/geolocation/index.html">geolocation</a> (<a href="gears/geolocation/">source</a>)</li>
</ul>
</body>
View
20 src/dom/dom.ml
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
type interval_id
type timeout_id
View
20 src/dom/dom.mli
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
(** Browser DOM binding *)
(**
[Dom] is a partial binding of the browser DOM, taken from Dynamic
View
25 src/gears/gears.mli
@@ -1,3 +1,28 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
+(** Google Gears binding *)
+(**
+ [Gears] is a binding of the Google Gears API.
+*)
+
class type factory =
object
method create : string -> < .. >
View
2  src/javascript/javascript.ml
@@ -1,6 +1,6 @@
(*
* This file is part of ocamljs, OCaml to Javascript compiler
- * Copyright (C) 2007 Skydeck, Inc
+ * Copyright (C) 2007-9 Skydeck, Inc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
View
2  src/javascript/javascript.mli
@@ -1,6 +1,6 @@
(*
* This file is part of ocamljs, OCaml to Javascript compiler
- * Copyright (C) 2007 Skydeck, Inc
+ * Copyright (C) 2007-9 Skydeck, Inc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
View
20 src/jslib/jslib_ast.incl
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
type unop =
| Jdelete
| Jvoid
View
20 src/jslib/jslib_ast.ml
@@ -1,13 +1,21 @@
(*
* This file is part of ocamljs, OCaml to Javascript compiler
- * Copyright (C) 2007 Skydeck, Inc
+ * Copyright (C) 2007-9 Skydeck, Inc
*
- * This program is free software released under the QPL.
- * See LICENSE for more details.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
*
- * The Software is provided AS IS with NO WARRANTY OF ANY KIND,
- * INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*)
open Camlp4.PreCast
View
20 src/jslib/jslib_ast.mli
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
type loc = Camlp4.PreCast.Loc.t
INCLUDE "../jslib_ast.incl"
View
20 src/jslib/jslib_lexer.ml
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
(* adapted from CDuce parser/ulexer.ml and camlp4/Camlp4/Struct/Lexer.mll *)
open Camlp4.PreCast
View
20 src/jslib/jslib_lexer.mli
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
(* adapted from CDuce parser/ulexer.mli *)
open Camlp4.Sig
View
20 src/jslib/jslib_parse.ml
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
module Gram = Camlp4.Struct.Grammar.Static.Make(Jslib_lexer)
open Jslib_lexer
View
20 src/jslib/jslib_parse.mli
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
module Gram :
sig
module Loc :
View
20 src/jslib/jslib_pp.ml
@@ -1,13 +1,21 @@
(*
* This file is part of ocamljs, OCaml to Javascript compiler
- * Copyright (C) 2007 Skydeck, Inc
+ * Copyright (C) 2007-9 Skydeck, Inc
*
- * This program is free software released under the QPL.
- * See LICENSE for more details.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
*
- * The Software is provided AS IS with NO WARRANTY OF ANY KIND,
- * INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
*)
open Format
View
20 src/jslib/jslib_pp.mli
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
val exp : Format.formatter -> Jslib_ast.exp -> unit
val stmt : Format.formatter -> Jslib_ast.stmt -> unit
val stmts : Format.formatter -> Jslib_ast.stmt list -> unit
View
20 src/jslib/syntax_inline.ml
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
open Camlp4.PreCast
module Q = Syntax.Quotation
View
20 src/jslib/syntax_quotations.ml
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2007-9 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
open Camlp4.PreCast
module Q = Syntax.Quotation
View
20 src/lwt-js/lwt_dom.ml
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2009 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
let sleep t =
let res = Lwt.wait () in
let timeout () = Lwt.wakeup res () in
View
20 src/lwt-js/lwt_dom.mli
@@ -1,3 +1,23 @@
+(*
+ * This file is part of ocamljs, OCaml to Javascript compiler
+ * Copyright (C) 2009 Skydeck, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA
+ *)
+
val sleep : float -> unit Lwt.t
(** [sleep d] is a threads which remain suspended for [d] seconds
(letting other threads run) and then terminates. *)
View
2  src/mozilla/mozilla.ml
@@ -1,6 +1,6 @@
(*
* This file is part of ocamljs, OCaml to Javascript compiler
- * Copyright (C) 2007 Skydeck, Inc
+ * Copyright (C) 2007-9 Skydeck, Inc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
View
2  src/mozilla/mozilla.mli
@@ -1,6 +1,6 @@
(*
* This file is part of ocamljs, OCaml to Javascript compiler
- * Copyright (C) 2007 Skydeck, Inc
+ * Copyright (C) 2007-9 Skydeck, Inc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
View
2  src/ocamljs/ocamljs.ml
@@ -1,6 +1,6 @@
(*
* This file is part of ocamljs, OCaml to Javascript compiler
- * Copyright (C) 2007 Skydeck, Inc
+ * Copyright (C) 2007-9 Skydeck, Inc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
View
2  src/ocamljs/ocamljs.mli
@@ -1,6 +1,6 @@
(*
* This file is part of ocamljs, OCaml to Javascript compiler
- * Copyright (C) 2007 Skydeck, Inc
+ * Copyright (C) 2007-9 Skydeck, Inc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
Please sign in to comment.
Something went wrong with that request. Please try again.