Commit bdec330c authored by Robert Griesemer's avatar Robert Griesemer

remove leftover forward-decl syntax and example

(per feedback from Austin)

R=rsc
DELTA=7  (0 added, 2 deleted, 5 changed)
OCL=34158
CL=34161
parent aeaab597
......@@ -1503,19 +1503,17 @@ to a new type. <font color=red>TODO: what exactly is a "new type"?</font>
<pre class="ebnf">
TypeDecl = "type" ( TypeSpec | "(" [ TypeSpecList ] ")" ) .
TypeSpecList = TypeSpec { ";" TypeSpec } [ ";" ] .
TypeSpec = identifier ( Type | "struct" | "interface" ) .
TypeSpec = identifier Type .
</pre>
<pre>
type IntArray [16] int
type IntArray [16]int
type (
Point struct { x, y float };
Polar Point
)
type Comparable interface
type TreeNode struct {
left, right *TreeNode;
value *Comparable;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment