com php-langspec: Fix precedence in instanceof-subject: spec/10-expressions.md spec/19-grammar.md

From: Date: Tue, 19 Sep 2017 08:12:18 +0000
Subject: com php-langspec: Fix precedence in instanceof-subject: spec/10-expressions.md spec/19-grammar.md
Groups: php.standards.cvs 
Request: Send a blank email to standards--cvs+get-399@lists.php.net to get a copy of this message
Commit: c17f3a1eb766d1b09c4fd0d9a032312b1f8ee250 Author: Nikita Popov <nikic@php.net> Tue, 19 Sep 2017 10:11:58 +0200 Parents: 1aed868c28bcbbb0f1d011169163aab1e66413c9 Branches: master Link: http://git.php.net/?p=php-langspec.git;a=commitdiff;h=c17f3a1eb766d1b09c4fd0d9a032312b1f8ee250 Log: Fix precedence in instanceof-subject Changed paths: M spec/10-expressions.md M spec/19-grammar.md Diff: diff --git a/spec/10-expressions.md b/spec/10-expressions..md index ed50d75..9cc864e 100644 --- a/spec/10-expressions.md +++ b/spec/10-expressions.md @@ -2224,7 +2224,7 @@ instanceof-expression: instanceof-subject 'instanceof' class-type-designator instanceof-subject: - expression + unary-expression --> <pre> @@ -2233,17 +2233,17 @@ instanceof-subject: <i><a href="#grammar-instanceof-subject">instanceof-subject</a></i> instanceof <i><a href="#grammar-class-type-designator">class-type-designator</a></i> <i id="grammar-instanceof-subject">instanceof-subject:</i> - <i><a href="#grammar-expression">expression</a></i> + <i><a href="#grammar-unary-expression">unary-expression</a></i> </pre> **Constraints** -The *expression* in *instanceof-subject* must not be any form of literal. +The *unary-expression* in *instanceof-subject* must not be any form of literal. **Semantics** Operator instanceof returns TRUE if the value designated by -*expression* in *instanceof-subject* is an object having the type specified +*unary-expression* in *instanceof-subject* is an object having the type specified by *class-type-designator*, is an object whose type is derived from that type, or is an object whose type implements the interface specified by *class-type-designator*. Otherwise, it returns FALSE. diff --git a/spec/19-grammar.md b/spec/19-grammar.md index 2162fbf..4dfd354 100644 --- a/spec/19-grammar.md +++ b/spec/19-grammar.md @@ -600,7 +600,7 @@ The grammar notation is described in [Grammars section](09-lexical-structure.md# <i><a href="#grammar-instanceof-subject">instanceof-subject</a></i> instanceof <i><a href="#grammar-class-type-designator">class-type-designator</a></i> <i id="grammar-instanceof-subject">instanceof-subject:</i> - <i><a href="#grammar-expression">expression</a></i> + <i><a href="#grammar-unary-expression">unary-expression</a></i> <i id="grammar-logical-NOT-expression">logical-NOT-expression:</i> <i><a href="#grammar-instanceof-expression">instanceof-expression</a></i>

« previous php.standards.cvs (#399) next »