From: Robert Griesemer Date: Thu, 17 Sep 2009 18:01:50 +0000 (-0700) Subject: - silence ebnflint: mark syntax section as "ebnf" instead of "grammar" X-Git-Tag: weekly.2009-11-06~552 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=da961881b4f5c1e89e4e66d92c8af5ee1192e4df;p=gostls13.git - silence ebnflint: mark syntax section as "ebnf" instead of "grammar" - re-use MethodName production R=r DELTA=4 (1 added, 1 deleted, 2 changed) OCL=34734 CL=34734 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 301466bebb..14a43c2202 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1731,8 +1731,9 @@ A method declaration binds an identifier to a method, which is a function with a receiver.

-MethodDecl = "func" Receiver identifier Signature [ Body ] .
+MethodDecl = "func" Receiver MethodName Signature [ Body ] .
 Receiver = "(" [ identifier ] [ "*" ] TypeName ")" .
+MethodName = identifier .
 

@@ -2862,10 +2863,9 @@ with the same arguments as M prefixed by an additional argument that is the receiver of the method.

-
+
 MethodExpr    = ReceiverType "." MethodName .
 ReceiverType  = TypeName | "(" "*" TypeName ")" .
-MethodName    = identifier .