Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #26802
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Definition of a script in JavaScript |
| Date | Thu, 05 Feb 2015 17:40:37 +0100 |
| Organization | PointedEars Software (PES) |
| Lines | 54 |
| Message-ID | <3245202.Gazq5g0FQ0@PointedEars.de> (permalink) |
| References | <JavaScript-20150204202621@ram.dialup.fu-berlin.de> <mau73u$dd9$1@dont-email.me> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1423154482 11752 eJwFwYEBACAEBMCViP8yDsn+I3QHo/JuJ+gYTIem86HPy6IYltspiTatlc2K2x3MbZYCmQ8egxEm (5 Feb 2015 16:41:22 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Thu, 5 Feb 2015 16:41:22 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwFwYEBACAEBMCVUP8YJ8X+I3SHReX1TXBjMCehoyLp2QCLHn7Pu3iMsp40y0C1PY1GTeRyyJGwNLTWB0IeFPE= |
| Cancel-Lock | sha1:KPv/4iRQADuKf5mh2RTPCdkkT7g= |
| X-NNTP-Posting-Host | eJwFwYEBwCAIA7CXBtjizkEs/59ggqCxcxFcGMwu/b3MlSf1TWjUTN4T97ohtqeqAsyeDdUDMBQRzg== |
| Xref | csiph.com comp.lang.javascript:26802 |
Show key headers only | View raw
Denis McMahon wrote: > On Wed, 04 Feb 2015 19:36:08 +0000, Stefan Ram wrote: >> Where does the MDN give the syntax for what one can write in the file >> »javascript.js«? > > Perhaps this is the page you are looking for? > > https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ > Lexical_grammar Doubtful, since the *syntactical* grammar was sought after. > Or maybe this one is: > > https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ > Statements Closer, but still not a grammar as in the Specification, unfortunately. It should not be too difficult to use the grammars in the Specification as template for a (Mozilla) JavaScript grammar. > [W3C definition of “script”] > In the normal sense, "program code" is generally expected to conform to > some syntax specified for the computer language it is written in. In the > case of Javascript, to paraphrase W3C: There is no “Javascript”. > "The most common scripting language ECMAscript (more widely known as > JavaScript) which is developed by Ecma." Except for “ECMAscript”, that statement is correct. The ECMAScript Language Specification (all Editions) also includes a definition for “scripting language”. I have quoted and cited it in the ECMAScript Support Matrix and in my thesis (see sig). A script then is a computer program written in a scripting language. > So whether you like it or not, your journey probably ends at the > ECMAScript language specification. It is just beginning there, and so is yours, since you are still talking about your “Javascript” fantasy. The ECMAScript Language Specification makes it clear that and how conforming implementations are allowed to differ from one another. Once one has accepted that basic fact, one can readily observe the differences between implementations, making it foolish to use one term *other* than “ECMAScript implementations” for all those implementations. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Definition of a script in JavaScript Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-04 22:39 +0000
Re: Definition of a script in JavaScript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-02-05 17:40 +0100
Re: Definition of a script in JavaScript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-02-05 17:47 +0100
csiph-web