Remove trailing-semicolon extension.
authorKim Grasman <kim.grasman@gmail.com>
Wed, 9 Oct 2013 14:48:17 +0000 (16:48 +0200)
committerKim Grasman <kim.grasman@gmail.com>
Wed, 9 Oct 2013 14:48:17 +0000 (16:48 +0200)
asn1ate/parser.py

index 3960f26..83d4a77 100644 (file)
@@ -283,10 +283,7 @@ def _build_asn1_grammar():
     # and we use them.
     named_type << (Optional(identifier) + type_)
 
-    # EXT: Trailing semi-colon is not allowed by standard
-    # grammar, but our other ASN.1 code generator accepts it
-    # and we happen to use it.
-    type_assignment = typereference + '::=' + type_ + Suppress(Optional(';'))
+    type_assignment = typereference + '::=' + type_
     value_assignment = valuereference + type_ + '::=' + value
 
     assignment = type_assignment | value_assignment