/+junk/c_sdl_joypad_ducktape

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad_ducktape

« back to all changes in this revision

Viewing changes to Duktape.README

  • Committer: Gustav Hartvigsson
  • Date: 2014-09-07 11:25:54 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140907112554-inl2hw7meep96k74
* Updated Duktape to 0.11.0
* Removed duktape.README and Duktape.LICENSE, as they are now included in
  duktape.h and duktape.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
=======
2
 
Duktape
3
 
=======
4
 
 
5
 
Duktape is a small and portable Ecmascript E5/E5.1 implementation.  It is
6
 
intended to be easily embeddable into C programs, with a C API similar in
7
 
spirit to Lua's.  Duktape supports the full E5 feature set such as errors
8
 
(with tracebacks), Unicode strings, and regular expressions.  Other feature
9
 
highlights include:
10
 
 
11
 
  * Custom types (like pointers and buffers) for C integration
12
 
 
13
 
  * Reference counting and mark-and-sweep garbage collection
14
 
    (with finalizer support)
15
 
 
16
 
  * Co-operative threads, a.k.a. coroutines
17
 
 
18
 
  * Tail call support
19
 
 
20
 
You can browse Duktape programmer's API and other documentation at::
21
 
 
22
 
  http://www.duktape.org/
23
 
 
24
 
In particular, you should read the getting started section::
25
 
 
26
 
  http://duktape.org/guide.html#gettingstarted
27
 
 
28
 
Building and integrating Duktape into your project is very straightforward.
29
 
See Makefile.example for an example::
30
 
 
31
 
  $ cd <dist_root>
32
 
  $ make -f Makefile.example
33
 
  [...]
34
 
  $ ./hello
35
 
  Hello world!
36
 
  2+3=5
37
 
 
38
 
To build an example command line tool, use the following::
39
 
 
40
 
  $ cd <dist_root>
41
 
  $ make -f Makefile.cmdline
42
 
  [...]
43
 
  $ ./duk
44
 
  ((o) Duktape
45
 
  duk> print('Hello world!');
46
 
  Hello world!
47
 
  = undefined
48
 
 
49
 
There are further examples in the ``examples/`` directory.  Although
50
 
Duktape itself is widely portable, some of the examples are Linux only.
51
 
For instance the ``eventloop`` example illustrates how ``setTimeout()``
52
 
and other standard timer functions could be implemented on Unix/Linux.
53
 
 
54
 
This distributable contains Duktape version 0.10.0, created from git
55
 
commit 78c73a152c35749ff5fe237209c353503ea6534d (v0.9.0-664-g78c73a1).
56
 
 
57
 
Duktape is copyrighted by its authors (see ``AUTHORS.txt``) and licensed
58
 
under the MIT license (see ``LICENSE.txt``).  MurmurHash2 is used internally;
59
 
it is also under the MIT license.
60
 
 
61
 
Have fun!
62
 
 
63
 
Sami Vaarala (sami.vaarala@iki.fi)