Solved

Bison/yacc grammar for ECMA Scrip (javascript)

Posted on 2008-10-18
3
2,861 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This video teaches viewers about errors in exception handling.
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.

786 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