empty IMPORTS section is allowed


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1249 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1parser/asn1p_y.y b/libasn1parser/asn1p_y.y
index a89ba79..7e63853 100644
--- a/libasn1parser/asn1p_y.y
+++ b/libasn1parser/asn1p_y.y
@@ -250,6 +250,7 @@
 %type	<a_module>		optImports
 %type	<a_module>		optExports
 %type	<a_module>		ImportsDefinition
+%type	<a_module>		optImportsBundleSet
 %type	<a_module>		ImportsBundleSet
 %type	<a_xports>		ImportsBundle
 %type	<a_xports>		ImportsList
@@ -606,7 +607,7 @@
 	| ImportsDefinition;
 
 ImportsDefinition:
-	TOK_IMPORTS ImportsBundleSet ';' {
+	TOK_IMPORTS optImportsBundleSet ';' {
 		if(!saved_aid && 0)
 			return yyerror("Unterminated IMPORTS FROM, "
 					"expected semicolon ';'");
@@ -621,6 +622,10 @@
 	}
 	;
 
+optImportsBundleSet:
+	{ $$ = asn1p_module_new(); }
+	| ImportsBundleSet;
+
 ImportsBundleSet:
 	ImportsBundle {
 		$$ = asn1p_module_new();