Possible duplicate: Tiny javascript implementation?
I have searched around for a C implementation of Javascript, but I couldn't find one. I need this for an ultra-portable application that will run on platforms without a C++ compiler.
Here are my requirements:
- ANSI C (C89 compatible if possible)
- Minimal dependencies
- Embeddable (not stand-alone)
- Open Source (GPL v2 compatible)
I don't care about speed, but correctness is an issue. I would prefer for it to support ECMAScript-262 v5, but v3 is good enough for now.
Does something like this exist? If not, are there any implementations that would be relatively simple to port?
DMDScript is the simplest that I've found, so I may end up porting that. Apparently there is no reference implementation, so this may be the best way to go.
Note:
I also found tiny-js, which is meant to be small and simple, but it doesn't seem to be standards compliant. It is actively developed it seems...