EcmaScript => JS. Fixes #330

No one calls it EcmaScript anymore.
This commit is contained in:
Simon Hafner 2013-02-14 13:59:12 -06:00
commit 1785c6877b
25 changed files with 127 additions and 126 deletions

View file

@ -328,7 +328,7 @@ Modules for JS backend
---------------------------
* `dom <dom.html>`_
Declaration of the Document Object Model for the ECMAScript backend.
Declaration of the Document Object Model for the JS backend.
Impure libraries

View file

@ -4720,7 +4720,7 @@ Foreign function interface
==========================
Nimrod's `FFI`:idx: (foreign function interface) is extensive and only the
parts that scale to other future backends (like the LLVM/EcmaScript backends)
parts that scale to other future backends (like the LLVM/JavaScript backends)
are documented here.

View file

@ -190,7 +190,7 @@ Define Effect
``useRealtimeGC`` Enables support of Nimrod's GC for *soft* realtime
systems. See the documentation of the `gc <gc.html>`_
for further information.
``nodejs`` The EcmaScript target is actually ``node.js``.
``nodejs`` The JS target is actually ``node.js``.
``ssl`` Enables OpenSSL support for the sockets module.
``memProfiler`` Enables memory profiling for the native GC.
================== =========================================================
@ -549,17 +549,17 @@ efficient:
else: quit(errorStr(p, "unknown variable: " & k.key))
The ECMAScript target
The JavaScript target
=====================
Nimrod can also generate `ECMAScript`:idx: (also known as `JavaScript`:idx:)
code. However, the ECMAScript code generator is experimental!
Nimrod can also generate `JavaScript`:idx: code. However, the
JavaScript code generator is experimental!
Nimrod targets ECMAScript 1.5 which is supported by any widely used browser.
Since ECMAScript does not have a portable means to include another module,
Nimrod targets JavaScript 1.5 which is supported by any widely used browser.
Since JavaScript does not have a portable means to include another module,
Nimrod just generates a long ``.js`` file.
Features or modules that the ECMAScript platform does not support are not
Features or modules that the JavaScript platform does not support are not
available. This includes:
* manual memory management (``alloc``, etc.)
@ -571,7 +571,7 @@ available. This includes:
However, the modules `strutils`:idx:, `math`:idx:, and `times`:idx: are
available! To access the DOM, use the `dom`:idx: module that is only
available for the ECMAScript platform.
available for the JavaScript platform.
To compile a Nimrod module into a ``.js`` file use the ``js`` command; the
default is a ``.js`` file that is supposed to be referenced in an ``.html``