diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2000-04-12 03:43:25 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2000-04-12 03:43:25 +0000 |
commit | 780b65fca6ed06966864d76755dc1dad94c39ade (patch) | |
tree | a93efbe44a2b54752fbb4a0b2e994c0a4505b271 /otherlibs/labltk/compiler/parser.mly | |
parent | 975d4dc752a717b2da0bb0f3307af6635572d3c5 (diff) |
nouvelle syntaxe avec tilde
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3061 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/labltk/compiler/parser.mly')
-rw-r--r-- | otherlibs/labltk/compiler/parser.mly | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/otherlibs/labltk/compiler/parser.mly b/otherlibs/labltk/compiler/parser.mly index eb7b3137d..314931131 100644 --- a/otherlibs/labltk/compiler/parser.mly +++ b/otherlibs/labltk/compiler/parser.mly @@ -95,13 +95,14 @@ Labeled_type2 : { $1, $3 } ; -/* products */ +/* products Type_list : Type2 COMMA Type_list { $1 :: $3 } | Type2 { [$1] } ; +*/ /* records */ Type_record : @@ -287,7 +288,7 @@ entry : TYPE ParserArity TypeName LBRACE Constructors RBRACE { enter_type $3 $2 $5 } | VARIANT TYPE ParserArity TypeName LBRACE Constructors RBRACE - { enter_type $4 $3 $6 variant: true } + { enter_type $4 $3 $6 ~variant: true } | TYPE ParserArity TypeName EXTERNAL { enter_external_type $3 $2 } | SUBTYPE ParserArity OPTION LPAREN IDENT RPAREN LBRACE AbbrevConstructors RBRACE |