Thank you Jhon because I thought that I made wrong and it is completely
true,
Ok I will add the grammar.
Best Regards
On Mon, Oct 31, 2011 at 3:30 AM, John McGaw <
no.w...@all.mozilla.org>wrote:
> On 10/30/2011 2:50 PM, paniz alipour wrote:
>
>> Dear Jhon,
>>
>> but I didn't see this:var i=1;
>>
>> in the link which you sent to.and in others the grammar didn't pars this
>> expression.
>>
>> What do you think?
>>
>>
>> On Sun, Oct 30, 2011 at 9:55 PM, John McGaw<
no.w...@all.mozilla.org**
>> >wrote:
>>
>> On 10/29/2011 10:27 AM, paniz alipour wrote:
>>>
>>> Hello My friend,
>>>>
>>>>
>>>> I need BNF for javascript which can pars object of javascript such as
>>>> document,...
>>>>
>>>> Please help me.
>>>>
>>>> Thanks
>>>>
>>>>
>>>> You want a BNF (Backus-Naur Form) grammar of the Javascript language
>>> which
>>> can be used to automatically generate computer code via YACC (or
>>> something
>>> similar) which is capable of parsing the Javascript language. Is that
>>> correct?
>>>
>>> There are so many variations in Javascript implementations that coming up
>>> with a proper BNF grammar and then making a bulletproof parser will be a
>>> major undertaking (to say the least). There is an approximate BNF here
>>>
http://www.lecad.fs.uni-lj.si/****documents/navodila/vrml2.0/****<
http://www.lecad.fs.uni-lj.si/**documents/navodila/vrml2.0/**>
>>> spec/part1/javascript.html<htt**p://
www.lecad.fs.uni-lj.si/**
>>> documents/navodila/vrml2.0/**spec/part1/javascript.html<
http://www.lecad.fs.uni-lj.si/documents/navodila/vrml2.0/spec/part1/javascript.html>
>>> >**which might give a starting point but there are a also BNFs for
>>> ECMAScript
>>>
>>> online which to some people really is Javascript, give or take.
>>>
>>> This brings back painful memories of compiler courses in college and the
>>> all-nighters they generated.
>>>
>>> ______________________________****_________________
>>> support-firefox mailing list
>>> support...@lists.mozilla.****org<support-firefox@lists.**
>>>
mozilla.org <
support...@lists.mozilla.org>>
>>>
https://lists.mozilla.org/****listinfo/support-firefox<
https://lists.mozilla.org/**listinfo/support-firefox>
>>> <https**://
lists.mozilla.org/listinfo/**support-firefox<
https://lists.mozilla.org/listinfo/support-firefox>
>>> >
>>> To unsubscribe, send an email to support-firefox-request@lists.****
>>>
mozilla.org?subject=****unsubscribe<
http://mozilla.org?subject=**unsubscribe>
>>> <
http://support-**firefox...@lists.mozilla.**
>>> org?subject=unsubscribe<
http://support-fir...@lists.mozilla.org?subject=unsubscribe>
--
Paniz Alipour