?
Solved

Bison/yacc grammar for ECMA Scrip (javascript)

Posted on 2008-10-18
3
Medium Priority
?
3,088 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 2000 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
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.
Suggested Courses

777 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