Solved

Bison/yacc grammar for ECMA Scrip (javascript)

Posted on 2008-10-18
3
2,965 Views
Last Modified: 2013-11-18
Hi,
   I have to write a lex/flex and Bison/yacc grammar for javascripts. Since javascripts follows ECMA Script specification, I have to write a lex/flex and Bison/yacc grammar from ECMA Scripts. Anybody knows grammar or any link where I can get grammar for ECMA Script.

Thanks in advance,
0
Comment
Question by:anton_shiban
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Infinity08 earned 500 total points
ID: 22756145
Not one specifically for Yacc, but take a look at Scriptonite :

        http://sourceforge.net/projects/scriptonite/

which contains a full ECMAScript grammar.


This page links to several grammars for ANTLR :

        http://www.antlr.org/grammar/list

Have a look through it - there are several for ECMAScript, JavaScript.
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 22756158
And here's the ECMAScript standard :

        http://www.ecma-international.org/publications/standards/Ecma-262.htm

Which contains the grammar in appendix A.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question