git.samba.org
/
third_party
/
asn1ate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8df9222
)
Remove trailing-semicolon extension.
author
Kim Grasman
<kim.grasman@gmail.com>
Wed, 9 Oct 2013 14:48:17 +0000
(16:48 +0200)
committer
Kim Grasman
<kim.grasman@gmail.com>
Wed, 9 Oct 2013 14:48:17 +0000
(16:48 +0200)
asn1ate/parser.py
patch
|
blob
|
history
diff --git
a/asn1ate/parser.py
b/asn1ate/parser.py
index 3960f2665bc3b8628d0573a7663b1d8f2106ab92..83d4a77d9ad47ee350bd332342d5c7252be3f1d6 100644
(file)
--- 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