View Full Version : ECMAScript Compiler?
11-30-2007, 12:48 AM
Is there such a thing as an ECMAScript compiler or some sort of non-web interpreter? If so, where could I find one? I wouldn't mind using js for very small applications.
11-30-2007, 04:59 AM
I don't really see the point. It's so limited you can't do anything at all. Just basic operations. I'd assume that Java would be just as easy anyway, for... what? math?
11-30-2007, 06:04 AM
Yeah, for gimicky programs like crunching a few numbers and whatnot. I would also be interested if one has some basic io implementations as well. In all, mostly just for fun.
11-30-2007, 08:39 AM
Really, I wonder if you could write one. Depending on what you want, it doesn't seem all that difficult to switch the syntax to Java, etc.
There are a few -- SpiderMonkey can be compiled to run from the command-line, or there's the Java-based Rhino, or Konqueror's KJS, or the Windows Scripting Host. No compilers though AFAIK.
They have very few host objects -- if you want to do anything complex you have to extend them.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.