From 2dea0b31d03cf76f8c5dcc1fdaec05962d717ca1 Mon Sep 17 00:00:00 2001 From: Brian Terlson Date: Sun, 21 May 2017 16:56:59 -0700 Subject: [PATCH] Tweak intro wording for SDOs --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index 409c9bfe682..f1a8c2d1662 100644 --- a/spec.html +++ b/spec.html @@ -697,7 +697,7 @@

Abstract Operations

Syntax-Directed Operations

-

Algorithms may be associated with productions of one of the ECMAScript grammars. Such algorithms are called syntax-directed operations. A production that has multiple alternative definitions will typically have a distinct algorithm for each alternative. When an algorithm is associated with a grammar production, it may reference the terminal and nonterminal symbols of the production alternative as if they were parameters of the algorithm. When used in this manner, nonterminal symbols refer to the actual alternative definition that is matched when parsing the source text.

+

A syntax-directed operation is a named operation whose definition consists of algorithms. Each algorithm is associated with one or more productions from one of the ECMAScript grammars. A production that has multiple alternative definitions will typically have a distinct algorithm for each alternative. When an algorithm is associated with a grammar production, it may reference the terminal and nonterminal symbols of the production alternative as if they were parameters of the algorithm. When used in this manner, nonterminal symbols refer to the actual alternative definition that is matched when parsing the source text.

When an algorithm is associated with a production alternative, the alternative is typically shown without any “[ ]” grammar annotations. Such annotations should only affect the syntactic recognition of the alternative and have no effect on the associated semantics for the alternative.

Unless explicitly specified otherwise, all chain productions have an implicit definition for every algorithm that might be applied to that production's left-hand side nonterminal. The implicit definition simply reapplies the same algorithm name with the same parameters, if any, to the chain production's sole right-hand side nonterminal and then returns the result. For example, assume there is a production: