Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
bfarias-godaddy committed Aug 6, 2019
1 parent e37ee02 commit f996dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions out.html
Expand Up @@ -1802,7 +1802,7 @@
display: none;
}
}
</style></head><body><div id="menu-toggle">☰</div><div id="menu-spacer"></div><div id="menu"><div id="menu-search"><input type="text" id="menu-search-box" placeholder="Search..."><div id="menu-search-results" class="inactive"></div></div><div id="menu-pins"><div class="menu-pane-header">Pins</div><ul id="menu-pins-list"></ul></div><div class="menu-pane-header">Table of Contents</div><div id="menu-toc"><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-intro" title="Introduction">Introduction</a></li><li><span class="item-toggle">◢</span><a href="#sec-syntax" title="Syntax"><span class="secnum">1</span> Syntax</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-updated-syntax" title="ECMAScript Language: Lexical Grammar"><span class="secnum">1.1</span> ECMAScript Language: Lexical Grammar</a></li><li><span class="item-toggle-none"></span><a href="#sec-lexical-and-regexp-grammars" title="The Lexical and RegExp Grammars"><span class="secnum">1.2</span> The Lexical and RegExp Grammars</a></li></ol></li><li><span class="item-toggle-none"></span><a href="#sec-copyright-and-software-license" title="Copyright &amp; Software License"><span class="secnum">A</span> Copyright &amp; Software License</a></li></ol></div></div><div id="spec-container"><h1 class="version first">Stage 3 Draft / August 5, 2019</h1><h1 class="title">Hashbang Grammar for JS</h1>
</style></head><body><div id="menu-toggle">☰</div><div id="menu-spacer"></div><div id="menu"><div id="menu-search"><input type="text" id="menu-search-box" placeholder="Search..."><div id="menu-search-results" class="inactive"></div></div><div id="menu-pins"><div class="menu-pane-header">Pins</div><ul id="menu-pins-list"></ul></div><div class="menu-pane-header">Table of Contents</div><div id="menu-toc"><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-intro" title="Introduction">Introduction</a></li><li><span class="item-toggle">◢</span><a href="#sec-syntax" title="Syntax"><span class="secnum">1</span> Syntax</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-updated-syntax" title="ECMAScript Language: Lexical Grammar"><span class="secnum">1.1</span> ECMAScript Language: Lexical Grammar</a></li><li><span class="item-toggle-none"></span><a href="#sec-lexical-and-regexp-grammars" title="The Lexical and RegExp Grammars"><span class="secnum">1.2</span> The Lexical and RegExp Grammars</a></li></ol></li><li><span class="item-toggle-none"></span><a href="#sec-copyright-and-software-license" title="Copyright &amp; Software License"><span class="secnum">A</span> Copyright &amp; Software License</a></li></ol></div></div><div id="spec-container"><h1 class="version first">Stage 3 Draft / August 6, 2019</h1><h1 class="title">Hashbang Grammar for JS</h1>
<style>
emu-example figure {
align-items: initial;
Expand Down Expand Up @@ -1869,7 +1869,7 @@ <h1><span class="secnum">1.1</span>ECMAScript Language: Lexical Grammar</h1>

<p>The source text of an ECMAScript <emu-nt><a href="https://tc39.github.io/ecma262/#prod-Script">Script</a></emu-nt> or <emu-nt><a href="https://tc39.github.io/ecma262/#prod-Module">Module</a></emu-nt> is first converted into a sequence of input elements, which are tokens, line terminators, comments, or white space. The source text is scanned from left to right, repeatedly taking the longest possible sequence of code points as the next input element.</p>

<p>There are several situations where the identification of lexical input elements is sensitive to the syntactic grammar context that is consuming the input elements. This requires multiple goal symbols for the lexical grammar. <ins>The <emu-nt id="_ref_0"><a href="#prod-InputElementHashbangOrRegExp">InputElementHashbangOrRegExp</a></emu-nt> goal is used as the first input element of a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-Script">Script</a></emu-nt> and <emu-nt><a href="https://tc39.github.io/ecma262/#prod-Module">Module</a></emu-nt>.</ins> The <emu-nt><a href="https://tc39.github.io/ecma262/#prod-InputElementRegExpOrTemplateTail">InputElementRegExpOrTemplateTail</a></emu-nt> goal is used in syntactic grammar contexts where a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-RegularExpressionLiteral">RegularExpressionLiteral</a></emu-nt>, a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateMiddle">TemplateMiddle</a></emu-nt>, or a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateTail">TemplateTail</a></emu-nt> is permitted. The <emu-nt><a href="https://tc39.github.io/ecma262/#prod-InputElementRegExp">InputElementRegExp</a></emu-nt> <emu-xref href="#sec-context-free-grammars"><a href="https://tc39.github.io/ecma262/#sec-context-free-grammars">goal symbol</a></emu-xref> is used in all syntactic grammar contexts (other than the start of a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-Script">Script</a></emu-nt> or <emu-nt><a href="https://tc39.github.io/ecma262/#prod-Module">Module</a></emu-nt>) where a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-RegularExpressionLiteral">RegularExpressionLiteral</a></emu-nt> is permitted but neither a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateMiddle">TemplateMiddle</a></emu-nt>, nor a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateTail">TemplateTail</a></emu-nt> is permitted. The <emu-nt><a href="https://tc39.github.io/ecma262/#prod-InputElementTemplateTail">InputElementTemplateTail</a></emu-nt> goal is used in all syntactic grammar contexts where a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateMiddle">TemplateMiddle</a></emu-nt> or a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateTail">TemplateTail</a></emu-nt> is permitted but a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-RegularExpressionLiteral">RegularExpressionLiteral</a></emu-nt> is not permitted. In all other contexts, <emu-nt><a href="https://tc39.github.io/ecma262/#prod-InputElementDiv">InputElementDiv</a></emu-nt> is used as the lexical <emu-xref href="#sec-context-free-grammars"><a href="https://tc39.github.io/ecma262/#sec-context-free-grammars">goal symbol</a></emu-xref>.</p>
<p>There are several situations where the identification of lexical input elements is sensitive to the syntactic grammar context that is consuming the input elements. This requires multiple goal symbols for the lexical grammar. <ins>The <emu-nt id="_ref_0"><a href="#prod-InputElementHashbangOrRegExp">InputElementHashbangOrRegExp</a></emu-nt> goal is used at the start of a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-Script">Script</a></emu-nt> or <emu-nt><a href="https://tc39.github.io/ecma262/#prod-Module">Module</a></emu-nt>.</ins> The <emu-nt><a href="https://tc39.github.io/ecma262/#prod-InputElementRegExpOrTemplateTail">InputElementRegExpOrTemplateTail</a></emu-nt> goal is used in syntactic grammar contexts where a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-RegularExpressionLiteral">RegularExpressionLiteral</a></emu-nt>, a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateMiddle">TemplateMiddle</a></emu-nt>, or a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateTail">TemplateTail</a></emu-nt> is permitted. The <emu-nt><a href="https://tc39.github.io/ecma262/#prod-InputElementRegExp">InputElementRegExp</a></emu-nt> <emu-xref href="#sec-context-free-grammars"><a href="https://tc39.github.io/ecma262/#sec-context-free-grammars">goal symbol</a></emu-xref> is used in all syntactic grammar contexts (other than the start of a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-Script">Script</a></emu-nt> or <emu-nt><a href="https://tc39.github.io/ecma262/#prod-Module">Module</a></emu-nt>) where a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-RegularExpressionLiteral">RegularExpressionLiteral</a></emu-nt> is permitted but neither a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateMiddle">TemplateMiddle</a></emu-nt>, nor a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateTail">TemplateTail</a></emu-nt> is permitted. The <emu-nt><a href="https://tc39.github.io/ecma262/#prod-InputElementTemplateTail">InputElementTemplateTail</a></emu-nt> goal is used in all syntactic grammar contexts where a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateMiddle">TemplateMiddle</a></emu-nt> or a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-TemplateTail">TemplateTail</a></emu-nt> is permitted but a <emu-nt><a href="https://tc39.github.io/ecma262/#prod-RegularExpressionLiteral">RegularExpressionLiteral</a></emu-nt> is not permitted. In all other contexts, <emu-nt><a href="https://tc39.github.io/ecma262/#prod-InputElementDiv">InputElementDiv</a></emu-nt> is used as the lexical <emu-xref href="#sec-context-free-grammars"><a href="https://tc39.github.io/ecma262/#sec-context-free-grammars">goal symbol</a></emu-xref>.</p>


<emu-grammar type="definition"><ins><emu-production name="InputElementHashbangOrRegExp" type="lexical" id="prod-InputElementHashbangOrRegExp">
Expand Down

0 comments on commit f996dcb

Please sign in to comment.