- added syntax for conversions (was missing)
- added TODO for syntax for built-ins (require type as first argument)
- removed duplicate definition of Index
DELTA=13 (11 added, 1 deleted, 1 changed)
OCL=34668
CL=34688
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 6a21c6c..7509c0d 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1809,7 +1809,6 @@
Element = [ Key ":" ] Value .
Key = FieldName | Index .
FieldName = identifier .
-Index = Expression .
Value = Expression .
</pre>
@@ -1996,6 +1995,7 @@
<pre class="ebnf">
PrimaryExpr =
Operand |
+ Conversion |
PrimaryExpr Selector |
PrimaryExpr Index |
PrimaryExpr Slice |
@@ -3906,7 +3906,7 @@
Conversions look like function calls of the form
</p>
-<pre class="grammar">
+<pre>
T(value)
</pre>
@@ -3915,6 +3915,12 @@
and <code>value</code> is an expression
that can be converted to a value
of result type <code>T</code>.
+</p>
+
+<pre class="ebnf">
+Conversion = ( TypeName | "(" Type ")" ) Expression .
+</pre>
+
<p>
The following conversion rules apply:
</p>
@@ -4058,6 +4064,10 @@
m := make(map[string] int, 100); # map with initial space for 100 elements
</pre>
+<p>
+<font color=red>TODO: Need syntax that permits a type as first argument for built-ins.</font>
+</p>
+
<hr/>
<h2 id="Packages">Packages</h2>