Commit 106abed1 authored by MARCHE Claude's avatar MARCHE Claude

allow parentheses around type in exception declaration

parent ccd9f169
......@@ -1010,6 +1010,8 @@ program_decl:
{ Dexn (add_lab $2 $3, None) }
| EXCEPTION uident labels primitive_type
{ Dexn (add_lab $2 $3, Some $4) }
| EXCEPTION uident labels LEFTPAR pure_type RIGHTPAR
{ Dexn (add_lab $2 $3, Some $5) }
| USE use_module
{ $2 }
| NAMESPACE namespace_import namespace_name list0_program_decl END
......
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