Solved

Bison/yacc grammar for ECMA Scrip (javascript)

Posted on 2008-10-18
3
2,771 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
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Infinity08 earned 500 total points
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
has22 challenge 11 70
EvenOdd challenge 10 81
method argument as final 1 62
copyEndy  challenge 15 54
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now