Jurassic or Jint?

Sep 12, 2012 at 8:49 AM

In general: What do you think is the main difference to Jint? I would like to point that out when linking to this two projects.

And more specific: If you want to create an syntax-highlighted HTML-Export of JavaScript-Code, you somehow need to reuse the parser that I suspect to sit in front of the interpreter. Is this possible with Jurassic?


Sep 12, 2012 at 12:35 PM

The main difference is that Jurassic is a compiler, not an interpreter like Jint.

Other differences:

  • Jurassic is much faster than Jint.
  • Jurassic has much better standards support (full support for EcmaScript 5).
  • Jint has the ability to pause and single step through code.
  • Jint has easier integration with .NET code (in Jurassic you have to write wrapper classes if you want the javascript code to be able to call .NET framework methods, for example).

The parser is not designed to be used stand-alone, but on the other hand it wouldn't be hard to separate out the parser from the code generator.

Sep 13, 2012 at 4:23 AM
Also, on a side-note. To get highlighting of javascript you would probably (more or less) only need the tokenizer, not the full parser.