Implement ECMAScript-262 in C?

Possible duplicate: Tiny javascript implementation?

I searched around the C implementation of Javascript, but I could not find it. I need this for an ultraportable application that will work on platforms without a C ++ compiler.

Here are my requirements:

  • ANSI C (possibly compatible with C89)
  • Minimal Dependencies
  • Built-in (not standalone)
  • Open Source (GPL v2 compatible)

I don't care about speed, but correctness is a problem. I would prefer it to support ECMAScript-262 v5, but v3 is good enough now.

Is there something similar? If not, are there any implementations that would be relatively easy to port?

DMDScript is the easiest I have found, so I can port it. There seems to be no reference implementation , so this might be the best way.

Note:

I also found tiny-js , which should be small and simple, but it doesn't seem to be up to standard. He is actively developingseems ...

+5
source share
3 answers

Wiki SpiderMonkey claims that C / C ++, however, looking at the source package, seems to be really pure C.

The official download link is http://ftp.mozilla.org/pub/mozilla.org/js/js-1.8.0-rc1.tar.gz

C, . FTP (http://ftp.mozilla.org/pub/mozilla.org/js/) spidermonkey 1.8.5 1.4, Rhino 1.7 1.4.

API Spidermonkey .

+2

Spidermonkey 1.8.0 RC1 C. .

++ 11 2013 1.8.5

+3
+1

All Articles