aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-04-30 14:20:56 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-04-30 14:20:56 -0400
commit76ab1d2b6c9eedd861920ae6b6f8ee06aa482159 (patch)
tree225b147c84541b41d9f7a0f640c1e905000ee357 /doc
parente14db2366160840e0c25f3a467ff984304831e4c (diff)
downloadzig-76ab1d2b6c9eedd861920ae6b6f8ee06aa482159.tar.gz
zig-76ab1d2b6c9eedd861920ae6b6f8ee06aa482159.zip
support foo.* for ptr deref
See #770
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.html.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in
index 16fafdaad9..9fb2ebf9f5 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -5958,10 +5958,12 @@ MultiplyOperator = "||" | "*" | "/" | "%" | "**" | "*%"
PrefixOpExpression = PrefixOp TypeExpr | SuffixOpExpression
-SuffixOpExpression = ("async" option("&lt;" SuffixOpExpression "&gt;") SuffixOpExpression FnCallExpression) | PrimaryExpression option(FnCallExpression | ArrayAccessExpression | FieldAccessExpression | SliceExpression)
+SuffixOpExpression = ("async" option("&lt;" SuffixOpExpression "&gt;") SuffixOpExpression FnCallExpression) | PrimaryExpression option(FnCallExpression | ArrayAccessExpression | FieldAccessExpression | SliceExpression | PtrDerefExpression)
FieldAccessExpression = "." Symbol
+PtrDerefExpression = ".*"
+
FnCallExpression = "(" list(Expression, ",") ")"
ArrayAccessExpression = "[" Expression "]"
@@ -5974,7 +5976,7 @@ ContainerInitBody = list(StructLiteralField, ",") | list(Expression, ",")
StructLiteralField = "." Symbol "=" Expression
-PrefixOp = "!" | "-" | "~" | "*" | ("&amp;" option("align" "(" Expression option(":" Integer ":" Integer) ")" ) option("const") option("volatile")) | "?" | "??" | "-%" | "try" | "await"
+PrefixOp = "!" | "-" | "~" | ("*" option("align" "(" Expression option(":" Integer ":" Integer) ")" ) option("const") option("volatile")) | "?" | "??" | "-%" | "try" | "await"
PrimaryExpression = Integer | Float | String | CharLiteral | KeywordLiteral | GroupedExpression | BlockExpression(BlockOrExpression) | Symbol | ("@" Symbol FnCallExpression) | ArrayType | FnProto | AsmExpression | ContainerDecl | ("continue" option(":" Symbol)) | ErrorSetDecl | PromiseType