News for hackers. Stuff that matters.
Re:PEG.js - parser generator for JavaScript by cousin_it on Wednesday March 17, 2010 @01:21PM (#1199084)
A parser generator? Why oh why? It sounds so 80s. JavaScript is strong enough to express parser combinators, e.g. see Chris Double's implementation (also based on the PEG formalism):

http://www.bluishcoder.co.nz/2007/10/javascript-parser-combi...

I did the same thing in ActionScript. It's easy and fun.

Re:PEG.js - parser generator for JavaScript by dmajda on Wednesday March 17, 2010 @01:56PM (#1199186)
I believe that the classical generated parser has generally better performance potential - there is less function calling, less string passing (but this may be avoided easily in combinators too) and more opportunity for optimalization if you have the whole grammar AST in hand.
Re:PEG.js - parser generator for JavaScript by doublec on Wednesday March 17, 2010 @06:41PM (#1199864)
It was pointed out to me that my git repository hosting this code was down. I've now moved it to github if anyone was looking for it:

http://github.com/doublec/jsparse