From 19c1337ca6f2c570fab2a6630dba6dc60b8c122f Mon Sep 17 00:00:00 2001 From: Kim Grasman Date: Wed, 9 Oct 2013 16:48:17 +0200 Subject: [PATCH] Remove trailing-semicolon extension. --- asn1ate/parser.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/asn1ate/parser.py b/asn1ate/parser.py index 3960f26..83d4a77 100644 --- a/asn1ate/parser.py +++ b/asn1ate/parser.py @@ -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 -- 1.7.10.4