cvs: php-lang / c-like-syntax-spec.txt
| From: | Sascha Schumann | Date: | Wed, 22 Nov 2000 16:55:02 +0000 |
| Subject: | cvs: php-lang / c-like-syntax-spec.txt | ||
| Groups: | php.lang | ||
| Request: | Send a blank email to php-lang+get-84@lists.php.net to get a copy of this message | ||
sas Wed Nov 22 08:55:02 2000 EDT
Modified files:
/php-lang c-like-syntax-spec.txt
Log:
Added indirect-variable
Removed concatenation operator from postfix-expression
Added more ways to access object properties
Index: php-lang/c-like-syntax-spec.txt
diff -u php-lang/c-like-syntax-spec.txt:1.6 php-lang/c-like-syntax-spec.txt:1.7
--- php-lang/c-like-syntax-spec.txt:1.6 Wed Nov 22 07:53:56 2000
+++ php-lang/c-like-syntax-spec.txt Wed Nov 22 08:55:01 2000
@@ -1,4 +1,4 @@
-# $Id: c-like-syntax-spec.txt,v 1.6 2000/11/22 15:53:56 sas Exp $
+# $Id: c-like-syntax-spec.txt,v 1.7 2000/11/22 16:55:01 sas Exp $
#
# See Language_Notation.txt for notation notes
@@ -162,11 +162,15 @@
string-constant
interpolated-string
+indirect-variable:
+ '${' expression '}'
+
variable-reference:
'&' variable
primary-expression:
variable
+ indirect-variable
constant
string-literal
'(' expression ')'
@@ -175,8 +179,9 @@
primary-expression
postfix-expression '[' expression ']'
postfix-expression '->' '{' expression '}'
+ postfix-expression '->' variable
+ postfix-expression '->' indirect-variable
postfix-expression '->' identifier
- postfix-expression '.' expression
postfix-expression '++'
postfix-expression '--'
identifier '(' [expression-list] ')'