- 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
Element = [ Key ":" ] Value .
Key = FieldName | Index .
FieldName = identifier .
-Index = Expression .
Value = Expression .
</pre>
<pre class="ebnf">
PrimaryExpr =
Operand |
+ Conversion |
PrimaryExpr Selector |
PrimaryExpr Index |
PrimaryExpr Slice |
Conversions look like function calls of the form
</p>
-<pre class="grammar">
+<pre>
T(value)
</pre>
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>
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>