-
Notifications
You must be signed in to change notification settings - Fork 18
Reserved char seq #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Reserved char seq #165
Conversation
6d7a
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one question concerning the removed match arms.
| constraints, | ||
| distinguished_values: None, | ||
| }), | ||
| (None, BIT_STRING) => ASN1Type::BitString(BitString { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove these arms?
Update test snapshots for `parses_modules` after pull request librasn#161 Parse ANY [DEFINED BY identifier].
Update test snapshots for `parses_modules` after pull request librasn#168 feat: Support T61String.
Update test snapshots for `parses_modules` after pull request librasn#169 feat: Generate bindings for UniversalString.
Update test snapshots for `parses_modules` after pull request librasn#170 Fix syntax errors in RFC 3281.
For example, split "SEQUENCE OF" into it's two reserved character sequences "SEQUENCE" and "OF". This is to better follow the reserved words, and also allows white space between words. Two more test modules are now parsing.
Fixes parsing of some more modules.
f12c6e1 to
8278b85
Compare
|
I added the snapshot testing changes. This probably needs to be merged after #171 Update snapshots. |
feat(parser): Split up combined reserved words
For example, split "SEQUENCE OF" into it's two reserved character sequences "SEQUENCE" and "OF". This is to better follow the reserved words, and also allows arbitrary white space between words.
fix(parser) CHOICE options no longer requires constraints
Parse tests outcome:
Success rate of 74%->75%.
Parsed 664->675 ASN1 modules without running into unrecoverable errors.
Failed to parse 228->217 modules with the following errors: ..