mirror of https://github.com/svaarala/duktape.git
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.
Sami Vaarala
49a0946e8f
|
11 years ago | |
---|---|---|
api-testcases | 11 years ago | |
bugs | 11 years ago | |
doc | 12 years ago | |
ecmascript-testcases | 11 years ago | |
examples | 11 years ago | |
licenses | 12 years ago | |
references | 12 years ago | |
runtests | 11 years ago | |
src | 11 years ago | |
website | 11 years ago | |
.gitignore | 12 years ago | |
LICENSE.txt | 12 years ago | |
Makefile | 11 years ago | |
README.txt.dist | 11 years ago | |
bin2img.py | 11 years ago | |
combine_src.py | 11 years ago | |
make_dist.sh | 11 years ago | |
make_maint.sh | 11 years ago |
README.txt.dist
=======
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:
* 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 using the off-line version included
in this distributable, or at::
http://www.duktape.org/
Building and integrating Duktape into your project is very straightforward.
See Makefile.example for an example::
$ cd <dist_root>
$ make -f Makefile.example
[...]
$ ./test
Hello world!
2+3=5
To build an example command line tool, use the following::
$ cd <dist_root>
$ make -f Makefile.cmdline
[...]
$ ./duk
((o) Duktape
[... build info ...]
duk> print('Hello world!');
Hello world!
= undefined
The source code should currently compile cleanly on Linux and OSX
(Darwin), for both x86 and ARM. The goal is of course to compile
on almost any reasonable platform.
There is a separate tar ball for developing Duktape: it contains
internal documentation and unit tests which are not necessary to
use Duktape.
Duktape is 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