Tag

Grammar

0 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Nov 1, 2024 · Fundamentals

Understanding BNF Notation and Its Application to Python Syntax

This article explains the Backus–Naur Form (BNF) notation, its core components, and how to use it to describe Python grammar, providing concrete examples such as full‑name definitions, identifiers, and control‑flow statements, along with best‑practice tips for reading Python BNF rules.

BNFGrammarParsing
0 likes · 10 min read
Understanding BNF Notation and Its Application to Python Syntax
ByteFE
ByteFE
May 20, 2021 · Fundamentals

Understanding ECMAScript: Cover Grammars and Finite Lookahead

This article explains ECMAScript's cover grammars and finite lookahead mechanisms for resolving ambiguous syntax, focusing on arrow function parameter lists versus parenthesized expressions.

Arrow FunctionsECMAScriptGrammar
0 likes · 8 min read
Understanding ECMAScript: Cover Grammars and Finite Lookahead
ByteFE
ByteFE
Apr 25, 2021 · Fundamentals

Understanding ECMAScript Grammar: Lexical, Syntactic, and Identifier Rules

This article examines the four ECMAScript grammars—lexical, syntactic, regular‑expression, and numeric‑string—explains how context‑free productions define tokens, shows ambiguous cases such as the '/' and '`' characters, and details why the identifier await is prohibited in async functions through static‑semantic rules.

ECMAScriptGrammarLexical
0 likes · 13 min read
Understanding ECMAScript Grammar: Lexical, Syntactic, and Identifier Rules
ByteFE
ByteFE
Apr 22, 2021 · Frontend Development

Understanding ECMAScript Grammars: Lexical and Syntactic Rules and the Disallowance of await as an Identifier

This article explains how the ECMAScript specification defines four context‑free grammars—lexical, syntactic, RegExp, and numeric string—illustrates ambiguities such as the '/' token and template literals, and shows how static semantics forbid using the await keyword as an identifier inside async functions while allowing it elsewhere.

ECMAScriptGrammarLexical
0 likes · 15 min read
Understanding ECMAScript Grammars: Lexical and Syntactic Rules and the Disallowance of await as an Identifier
JD Tech Talk
JD Tech Talk
Dec 16, 2020 · Databases

Understanding SQL Parser and Its Implementation in Apache ShardingSphere

This article explains the fundamentals of SQL parsing, covering lexer and parser mechanisms, context‑free grammar concepts, LL(1) and LR(1) parsing techniques, and demonstrates how Apache ShardingSphere implements a flexible, multi‑dialect SQL parser with features such as formatting, parameterization, and extensibility.

ASTDatabaseGrammar
0 likes · 11 min read
Understanding SQL Parser and Its Implementation in Apache ShardingSphere