ECMAScript: Lexical Grammar vs Syntactic Grammar
问题 I am having some difficulties understanding the specific difference between Lexical Grammar and Syntactic Grammar in the ECMAScript 2017 specification. Excerpts from ECMAScript 2017 5.1.2 The Lexical and RegExp Grammars A lexical grammar for ECMAScript is given in clause 11. This grammar has as its terminal symbols Unicode code points that conform to the rules for SourceCharacter defined in 10.1. It defines a set of productions, starting from the goal symbol InputElementDiv,