You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.3 KiB

=======
Duktape
=======
Duktape is a small and portable Ecmascript E5/E5.1 implementation. It is
intended to be easily embeddable into C programs, with a C API similar in
spirit to Lua's.
The goal is to support the full E5 feature set like Unicode strings and
regular expressions. Other feature highlights include:
12 years ago
* Custom types (like pointers and buffers) for C integration
* Reference counting and mark-and-sweep garbage collection
(with finalizer support)
* Co-operative threads, a.k.a. coroutines
* Tail call support
You can browse Duktape programmer's API and other documentation at::
11 years ago
http://www.duktape.org/
11 years ago
Building and integrating Duktape into your project is very straightforward.
See Makefile.example for an example::
11 years ago
$ cd <dist_root>
$ make -f Makefile.example
[...]
$ ./hello
Hello world!
2+3=5
To build an example command line tool, use the following::
11 years ago
$ cd <dist_root>
$ make -f Makefile.cmdline
[...]
11 years ago
$ ./duk
((o) Duktape
duk> print('Hello world!');
Hello world!
= undefined
This distributable contains Duktape version @DUK_VERSION_FORMATTED@, created from git
commit @GIT_COMMIT@ (@GIT_DESCRIBE@).
Duktape is (C) Sami Vaarala and licensed under the MIT license
(see ``LICENSE.txt``). MurmurHash2 is used internally; it is also
under the MIT license.
Have fun!
--
Sami Vaarala
sami.vaarala@iki.fi