changed typeDecl
authorclasohm
Fri, 01 Dec 1995 14:20:09 +0100
changeset 1385 63c3d78df538
parent 1384 007ad29ce6ca
child 1386 cf066d9b4c4f
changed typeDecl
doc-src/Ref/theory-syntax.tex
--- a/doc-src/Ref/theory-syntax.tex	Fri Dec 01 14:17:50 1995 +0100
+++ b/doc-src/Ref/theory-syntax.tex	Fri Dec 01 14:20:09 1995 +0100
@@ -53,7 +53,14 @@
 types : 'types' ( ( typeDecl ( () | '(' infix ')' ) ) + )
       ;
 
-typeDecl : ( () | tid | '(' ( tid + ',' ) ')') name ( () | '='  string );
+typeDecl : ( () | tid | '(' ( tid + ',' ) ')') name
+           ( () | '=' ( string | type ) );
+
+type : simpleType | '(' type ')' | type '=>' type |
+       '[' ( type + "," ) ']' '=>' type;
+
+simpleType: id | ( tid ( () | '::' id ) ) |
+            '(' ( type + "," ) ')' id | simpleType id;
 
 infix : ( 'infixr' | 'infixl' ) nat;
 
@@ -72,12 +79,6 @@
 
 constDecl : ( name + ',') '::' (string | type);
 
-type : simpleType | '(' type ')' | type '=>' type |
-       '[' ( type + "," ) ']' '=>' type;
-
-simpleType: id | ( tid ( () | '::' id ) ) |
-            '(' ( type + "," ) ')' id | simpleType id;
-
 mixfix :  string ( () | ( () | ('[' (nat + ',') ']')) nat )
        | infix
        | 'binder' string nat ;