Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EBNF for ECMAScript?

I'm trying to find a good EBNF description of ECMAScript, but so far I've not found anything complete.

Any ideas?

like image 264
Peter Boughton Avatar asked Nov 23 '09 22:11

Peter Boughton


1 Answers

How about the ECMAScript standard? Complete by definition :-}

EDIT: If you want an existing grammar, try one of the grammar generator tools sites. For ANTLR, here's the ECMAScript grammar. I know nothing of its quality but the ANTLR can produce good parsers if the grammer is constructed with care. You'll probably find the grammar also interwoven with bunch of ANTLR stuff, so it may suffer from some of the same problem as the standard from your point of view. At least you can delete all that stuff out.

like image 200
Ira Baxter Avatar answered Sep 20 '22 14:09

Ira Baxter