There is a JavaScript parser at least in C and Java (Mozilla), in JavaScript (Mozilla again) and Ruby. Is there any currently out there for Python?  I don't need a JavaScript interpreter, per se, just a parser that's up to ECMA-262 standards...
So I have this simple code:  function Run () {   var n = 2*1e7;   var inside = 0;   while (n--) {     if (Math.pow(Math.random(), 2) +         Math.pow(Math.random(), 2) < 1)       inside++;   }    return inside; }  var start = Date.now(); Run();...
Is there a way to enforce types in JavaScript? I'm thinking of a pre-processor which takes an input file written in ActionScript 3 or Java and converts it to JS.  I do not need a big run-time apparatus, I just need to introduce the idea of compil...
How would I go about writing a lightweight javascript to javascript parser. Something simple that can convert some snippets of code.  I would like to basically make the internal scope objects in functions public.  So something like this  var outer =...
When I saw this question I thought it would be helpful if a jQuery compiler could be written. Now, by compiler, I mean something that takes in jQuery code and outputs raw javascript code that is ultimately executed.  This is how I vision a block of j...
Dear folks, what should I do with these error warnings that Closure Compiler outputs? Thank you very much for your ideas and code improtements on this particular type of error:   JSC_WRONG_ARGUMENT_COUNT: Function parseInt: called with 1 argument(s)....
My nodejs Typescript server has grown in complexity and now relies on a few classes defined in another .ts file. This has created a strange compilation problem:   tsc server.ts compiles everything fine. But node server.js crashes at the first line th...
I can start Google Chrome with --js-flags="--trace-opt --trace-deopt" to get a log of what the V8 optimizer is compiling and what is falling out of the optimized execution, but is there anything comparable for Firefox IonMonkey?...
I'm currently writing a JavaScript compiler in ANTLR+Java.  I've read questions here on Stack Overflow on how to proceed with the execution - and the answer is always that it would be way too hard to do a static compilation (without JIT-infor...
For a project I'm tangentially working on, I need a way to compile JavaScript into some intermediate language or bytecode so that I can single-step through it.  I know that many of the JavaScript engines in modern browsers do something like this,...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.