-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make SingleValueConstraint accept alternatives
SingleValueConstraint can describe a set of valid values, not necessarily just one. This is not strictly correct -- the "|" token is used to create a UNION constraint composed of multiple other constraints of different types, so e.g. (1 | a | 6..10) is valid ASN.1, but not accepted by asn1ate. When proper combined constraints are implemented, this should fall out nicely and just work, but for now, support a common scenario with more than one SingleValue.
- Loading branch information
Showing
4 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters