https://bugzilla.wikimedia.org/show_bug.cgi?id=28626

--- Comment #19 from P.Copp <paul.copper...@gmail.com> 2011-06-29 07:28:12 UTC 
---
(In reply to comment #18)
> Since I'm brushing up on my low-level parsing skills anyway ;) I'm making a
> quick stab at building a PHP-based recursive-descent parser following the
> lexical & syntactical grammars in the ECMAScript standard -- this should be
> able to determine pretty cleanly what does/doesn't parse, and could be invoked
> at page save time to give feedback on identifying syntax errors in editable 
> .js
> pages.
Just to save you a bit of work, note that there is already JSMinPlus [1][2],
which is pretty much a JS parser, written in pure PHP. It should be easy to
adapt it a bit to make it a syntax checker.

[1] Desription: http://crisp.tweakblogs.net/blog/1856/jsmin+-version-13.html
[2] Source: http://files.tweakers.net/jsminplus/jsminplus.zip

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to