Reputation: 4221
Is JavaScript an open source programming language? I want to know how some objects and methods work.
I mean, is the compiler, interpreter, or parser for JavaScript open source?
Upvotes: 7
Views: 3775
Reputation: 27001
In addition to the answer given above, there is also an open source .NET implementation of JavaScript available: Its name is Jurassic, and it is available on CodePlex:
Examples:
Execute an expression:
var engine = new Jurassic.ScriptEngine();
Console.WriteLine(engine.Evaluate<int>("1.5 + 2.4"));
Execute a script:
var engine = new Jurassic.ScriptEngine();
engine.ExecuteFile(@"c:\test.js");
Features of version 2.2 (taken from web site):
Upvotes: 0
Reputation: 5514
What do you mean by open source language?
JavaScript is interpreted by the browser and depends upon the vendor and developer which engine it uses. Some of the popular engines are listed in List of ECMAScript engines.
Upvotes: 2
Reputation: 943556
There are numerous open source JavaScript engines (V8, Rhino and SpiderMonkey spring to mind) as well as closed source implementations (I assume that whatever Opera and Microsoft use are not open source).
The language is fairly tightly based on the ECMAScript specification, which is freely available.
Upvotes: 10