asn2quickder
9 years agoBump version to 0.5 to prepare for release.
Kim Grasman [Sat, 14 Mar 2015 15:28:30 +0000 (16:28 +0100)]
Bump version to 0.5 to prepare for release.

9 years agoAdd pip requirements files.
Kim Grasman [Sat, 14 Mar 2015 15:28:09 +0000 (16:28 +0100)]
Add pip requirements files.

9 years agoMerge branch 'master' of https://github.com/kimgr/asn1ate
Kim Grasman [Sun, 1 Feb 2015 19:54:33 +0000 (20:54 +0100)]
Merge branch 'master' of https://github.com/kimgr/asn1ate

9 years agoFix issue 11: respect module tag defaults.
Kim Grasman [Sun, 1 Feb 2015 19:50:46 +0000 (20:50 +0100)]
Fix issue 11: respect module tag defaults.

Simplify parser (leave None tokens for missing tag implicity.)
Record module tag defaults in sema.
Use module tag defaults if tag implicity is missing.

9 years agoRename Huawei CDR testdata.
Kim Grasman [Sun, 1 Feb 2015 14:48:22 +0000 (15:48 +0100)]
Rename Huawei CDR testdata.

9 years agoMerge pull request #16 from fzonneveld/issue15_BIT_STRING_in_SEQUENCE_fails
Kim Gräsman [Sat, 13 Dec 2014 22:28:07 +0000 (23:28 +0100)]
Merge pull request #16 from fzonneveld/issue15_BIT_STRING_in_SEQUENCE_fails

Fixed issue 15, BIT STRING in constructed types

9 years agoFixed issue 15, BIT STRING in constructed types
Frank Zonneveld [Sat, 13 Dec 2014 20:52:47 +0000 (15:52 -0500)]
Fixed issue 15, BIT STRING in constructed types

Added the BIT STRING type into the inline generator
part for constructed types.
Added small update in SEQUENCE test.

9 years agoFix issue 10.
Kim Grasman [Mon, 10 Nov 2014 21:01:31 +0000 (22:01 +0100)]
Fix issue 10.

Parse SIZE constraints on defined types.
Support GraphicString.
Add public test data file for Huawie call charging.

9 years agoInline any_defined_by clause and trim whitespace in test data.
Kim Grasman [Sat, 1 Nov 2014 14:46:23 +0000 (15:46 +0100)]
Inline any_defined_by clause and trim whitespace in test data.

9 years agoAdded ANY type.
Frank Zonneveld [Tue, 28 Oct 2014 19:21:43 +0000 (15:21 -0400)]
Added ANY type.

9 years agoSupport for selection types.
Kim Grasman [Sun, 27 Jul 2014 12:32:21 +0000 (14:32 +0200)]
Support for selection types.

9 years agoFix issue #1: All constraints are now code-genned.
Kim Grasman [Sun, 27 Jul 2014 08:12:23 +0000 (10:12 +0200)]
Fix issue #1: All constraints are now code-genned.

9 years agoCorrectly construct univ.BitString from bstring/hstring types.
Kim Grasman [Sat, 26 Jul 2014 20:39:41 +0000 (22:39 +0200)]
Correctly construct univ.BitString from bstring/hstring types.

9 years agoFix bug where self.constraint was sometimes never set.
Kim Grasman [Sat, 26 Jul 2014 20:33:25 +0000 (22:33 +0200)]
Fix bug where self.constraint was sometimes never set.

9 years agoTests for OCTET STRING values.
Kim Grasman [Sat, 26 Jul 2014 19:28:26 +0000 (21:28 +0200)]
Tests for OCTET STRING values.

9 years agoUse Optional instead of empty.
Kim Grasman [Sat, 26 Jul 2014 14:17:10 +0000 (16:17 +0200)]
Use Optional instead of empty.

9 years agoSwitch exponent rule to use CaselessLiteral.
Kim Grasman [Sat, 26 Jul 2014 14:14:35 +0000 (16:14 +0200)]
Switch exponent rule to use CaselessLiteral.

9 years agoRemove redundant constraint rule.
Kim Grasman [Sat, 26 Jul 2014 14:05:17 +0000 (16:05 +0200)]
Remove redundant constraint rule.

9 years agoForce Unix line endings.
Kim Grasman [Sat, 26 Jul 2014 13:58:03 +0000 (15:58 +0200)]
Force Unix line endings.

9 years agoSupport value-range and single-value constraints for REAL
Kim Grasman [Sat, 26 Jul 2014 13:57:50 +0000 (15:57 +0200)]
Support value-range and single-value constraints for REAL

9 years agoRemove scary comment.
Kim Grasman [Sat, 26 Jul 2014 13:38:15 +0000 (15:38 +0200)]
Remove scary comment.

9 years agoProper grammar for REAL values.
Kim Grasman [Sat, 26 Jul 2014 12:52:04 +0000 (14:52 +0200)]
Proper grammar for REAL values.

Including support for exponent values.

9 years agoFix so size constraints generate ValueSizeConstraint instead of ValueRangeConstraint.
Kim Grasman [Sat, 26 Jul 2014 09:18:14 +0000 (11:18 +0200)]
Fix so size constraints generate ValueSizeConstraint instead of ValueRangeConstraint.

9 years agoOnly generate _OID helper if necessary.
Kim Grasman [Sat, 26 Jul 2014 09:14:47 +0000 (11:14 +0200)]
Only generate _OID helper if necessary.

9 years agoSupport BIT STRING types without enumerators.
Kim Grasman [Sat, 26 Jul 2014 08:50:26 +0000 (10:50 +0200)]
Support BIT STRING types without enumerators.

Found the lovely Optional(..., default=) construct.

9 years agoFix bugs in name translation.
Kim Grasman [Fri, 25 Jul 2014 16:53:28 +0000 (18:53 +0200)]
Fix bugs in name translation.

9 years agoBetter type and value name sanitization.
Kim Grasman [Fri, 25 Jul 2014 16:29:12 +0000 (18:29 +0200)]
Better type and value name sanitization.

9 years agoSupport size and single-value constraints on some types.
Kim Grasman [Fri, 25 Jul 2014 15:03:37 +0000 (17:03 +0200)]
Support size and single-value constraints on some types.

9 years agoParse and ignore external value references.
Kim Grasman [Fri, 25 Jul 2014 09:40:04 +0000 (11:40 +0200)]
Parse and ignore external value references.

9 years agoParse and ignore external type references.
Kim Grasman [Fri, 25 Jul 2014 09:36:17 +0000 (11:36 +0200)]
Parse and ignore external type references.

9 years agoAdd new public standard definition.
Kim Grasman [Thu, 24 Jul 2014 14:17:04 +0000 (16:17 +0200)]
Add new public standard definition.

Vehicle-to-vehicle distributed short-range communications.

9 years agoTest case for circular assignment dependencies.
Kim Grasman [Thu, 24 Jul 2014 13:58:33 +0000 (15:58 +0200)]
Test case for circular assignment dependencies.

9 years agoFix issue #8 -- Cyclic references.
Kim Grasman [Tue, 22 Jul 2014 20:38:44 +0000 (22:38 +0200)]
Fix issue #8 -- Cyclic references.

We can now have cyclic references between assignments and constructed type
members. This required extensive surgery to properly handle cycles in
dependency sorting and to generate assignment code in two passes.

9 years agoAdd batch file for PyPI publishing.
Kim Grasman [Mon, 2 Jun 2014 18:59:36 +0000 (20:59 +0200)]
Add batch file for PyPI publishing.

9 years agoAdd classifiers and bump version.
Kim Grasman [Mon, 2 Jun 2014 18:45:41 +0000 (20:45 +0200)]
Add classifiers and bump version.

9 years agoRename README.rst -> README.txt
Kim Grasman [Mon, 2 Jun 2014 18:11:44 +0000 (20:11 +0200)]
Rename README.rst -> README.txt
Follows Python packaging convention at the expense of Github reST formatting. Oh well.

9 years agoAdd explicit source file encoding to setup.py.
Kim Grasman [Mon, 2 Jun 2014 18:07:40 +0000 (20:07 +0200)]
Add explicit source file encoding to setup.py.
Re-save it with UTF-8 encoding, so my name does not come out garbled.

10 years agoMerge pull request #7 from rasky/master
Kim Gräsman [Mon, 14 Apr 2014 18:55:23 +0000 (20:55 +0200)]
Merge pull request #7 from rasky/master

Add support for ENUMERATED in identifier-only form. Patch by Giovanni Bajo!

10 years agoFormatting
Giovanni Bajo [Mon, 14 Apr 2014 14:27:51 +0000 (16:27 +0200)]
Formatting

10 years agoUse Unique() function
Giovanni Bajo [Mon, 14 Apr 2014 14:27:45 +0000 (16:27 +0200)]
Use Unique() function

10 years agoAdd support for ENUMERATED in identifier-only form
Giovanni Bajo [Tue, 8 Apr 2014 16:38:12 +0000 (18:38 +0200)]
Add support for ENUMERATED in identifier-only form

10 years agoReorder builtin translations.
Kim Grasman [Mon, 6 Jan 2014 10:47:49 +0000 (11:47 +0100)]
Reorder builtin translations.

10 years agoSupport for hex string literals.
Kim Grasman [Mon, 6 Jan 2014 10:16:12 +0000 (11:16 +0100)]
Support for hex string literals.

10 years agoFix up comment.
Kim Grasman [Sun, 5 Jan 2014 09:31:51 +0000 (10:31 +0100)]
Fix up comment.

10 years agoHandle BinaryStringValue in codegen.
Kim Grasman [Sun, 5 Jan 2014 09:27:54 +0000 (10:27 +0100)]
Handle BinaryStringValue in codegen.

10 years agoSimplify grammar to more correctly parse bstrings.
Kim Grasman [Sat, 4 Jan 2014 22:01:36 +0000 (23:01 +0100)]
Simplify grammar to more correctly parse bstrings.

10 years agoDisallow empty file.
Kim Grasman [Sat, 4 Jan 2014 21:50:12 +0000 (22:50 +0100)]
Disallow empty file.
This fixes error detection, if not reporting.

10 years agoRename test data.
Kim Grasman [Sat, 4 Jan 2014 21:34:52 +0000 (22:34 +0100)]
Rename test data.

10 years agoSupport for binary string literals.
Kim Grasman [Fri, 3 Jan 2014 16:42:47 +0000 (17:42 +0100)]
Support for binary string literals.
Codegen still TBD.
Inspired by patch by James Ward.

10 years agoSupport extension markers in ENUMERATED.
Kim Grasman [Thu, 2 Jan 2014 08:35:12 +0000 (09:35 +0100)]
Support extension markers in ENUMERATED.
Based on patch by James Ward.

10 years agoSupport IA5String type.
Kim Grasman [Wed, 1 Jan 2014 17:41:10 +0000 (18:41 +0100)]
Support IA5String type.
Patch by James Ward.

10 years agoSupport for multiple module definitions in the same file.
Kim Grasman [Wed, 1 Jan 2014 16:25:20 +0000 (17:25 +0100)]
Support for multiple module definitions in the same file.
Based on original work by James Ward.

10 years agoIgnore todo.txt
Kim Grasman [Wed, 1 Jan 2014 15:20:17 +0000 (16:20 +0100)]
Ignore todo.txt

10 years agoRemove trailing-semicolon extension.
Kim Grasman [Wed, 9 Oct 2013 14:48:17 +0000 (16:48 +0200)]
Remove trailing-semicolon extension.

10 years agoAllow empty module body. Sema now sees exports, imports and assignments.
Kim Grasman [Sat, 21 Sep 2013 12:07:41 +0000 (14:07 +0200)]
Allow empty module body. Sema now sees exports, imports and assignments.

10 years agoFlow IMPORTS and EXPORTS through to sema. Not used there yet.
Kim Grasman [Fri, 20 Sep 2013 20:41:33 +0000 (22:41 +0200)]
Flow IMPORTS and EXPORTS through to sema. Not used there yet.

10 years agoUse EXPORTS ALL; instead of EXPORTS EVERYTHING;
Kim Grasman [Fri, 20 Sep 2013 20:30:46 +0000 (22:30 +0200)]
Use EXPORTS ALL; instead of EXPORTS EVERYTHING;

10 years agoMake semicolons required in IMPORTS and EXPORTS.
Kim Grasman [Fri, 20 Sep 2013 20:30:04 +0000 (22:30 +0200)]
Make semicolons required in IMPORTS and EXPORTS.

10 years agoSupport both import and export in same file
JohnTESlade [Fri, 20 Sep 2013 15:44:20 +0000 (16:44 +0100)]
Support both import and export in same file

10 years agoSupport ASN1 with EXPORTS
JohnTESlade [Fri, 20 Sep 2013 15:26:01 +0000 (16:26 +0100)]
Support ASN1 with EXPORTS

10 years agoAdd bash testing script
JohnTESlade [Fri, 20 Sep 2013 13:26:39 +0000 (14:26 +0100)]
Add bash testing script

10 years agoCodegen actual useful.ObjectDescriptor type, now supported in pyasn1.
Kim Grasman [Tue, 3 Sep 2013 18:39:59 +0000 (20:39 +0200)]
Codegen actual useful.ObjectDescriptor type, now supported in pyasn1.

10 years agoSupport PrintableString.
Kim Grasman [Thu, 29 Aug 2013 18:45:08 +0000 (20:45 +0200)]
Support PrintableString.

10 years agoSupport NumericString.
Kim Grasman [Thu, 29 Aug 2013 18:43:31 +0000 (20:43 +0200)]
Support NumericString.

10 years agoAdd note on semantic analysis to TODO list.
Kim Grasman [Thu, 29 Aug 2013 15:46:59 +0000 (17:46 +0200)]
Add note on semantic analysis to TODO list.

10 years agoUpdate README on grammar weaknesses.
Kim Grasman [Wed, 28 Aug 2013 14:20:49 +0000 (16:20 +0200)]
Update README on grammar weaknesses.

10 years agoSupport Useful types and their values.
Kim Grasman [Wed, 28 Aug 2013 14:09:30 +0000 (16:09 +0200)]
Support Useful types and their values.

10 years agoChange from BUG to EXT for extensions to the spec
Kim Grasman [Wed, 28 Aug 2013 13:00:20 +0000 (15:00 +0200)]
Change from BUG to EXT for extensions to the spec

10 years agoFix restricted integer type.
Kim Grasman [Wed, 28 Aug 2013 12:57:28 +0000 (14:57 +0200)]
Fix restricted integer type.

10 years agoBasic pre-commit check.
Kim Grasman [Wed, 28 Aug 2013 12:56:14 +0000 (14:56 +0200)]
Basic pre-commit check.
Checks that parsing and codegen runs without exceptions
and that generated Python is valid.

10 years agoRevert 6 commits 4e05c5b20c-c25aac2b27
Kim Grasman [Wed, 28 Aug 2013 12:18:42 +0000 (14:18 +0200)]
Revert 6 commits 4e05c5b20c-c25aac2b27
Some of them were breaking changes, and I want to do those
in a branch instead.

10 years agoSupport for GeneralizedTime and UTCTime
Kim Grasman [Tue, 27 Aug 2013 19:14:31 +0000 (21:14 +0200)]
Support for GeneralizedTime and UTCTime
Based on patch by Maurizio Papini.

10 years agoFix restricted integer type. Now works all the way through codegen.
Kim Grasman [Sun, 25 Aug 2013 19:21:46 +0000 (21:21 +0200)]
Fix restricted integer type. Now works all the way through codegen.

10 years agoRemove commented out grammar rule.
Kim Grasman [Sun, 25 Aug 2013 18:38:40 +0000 (20:38 +0200)]
Remove commented out grammar rule.

10 years agoAdd doc comment to Type.
Kim Grasman [Sun, 25 Aug 2013 18:34:39 +0000 (20:34 +0200)]
Add doc comment to Type.

10 years agoChange from BUG to EXT for extensions to the spec.
Kim Grasman [Sun, 25 Aug 2013 18:34:29 +0000 (20:34 +0200)]
Change from BUG to EXT for extensions to the spec.

10 years agoFirst step towards better constraints handling.
Kim Grasman [Sun, 25 Aug 2013 18:05:43 +0000 (20:05 +0200)]
First step towards better constraints handling.
Breaking change: Now adds a Type object to the sema model, and constraints
live on Type instead of SimpleType.

10 years agoAllow including source filename in auto-generated header.
Kim Grasman [Sun, 25 Aug 2013 18:01:16 +0000 (20:01 +0200)]
Allow including source filename in auto-generated header.

10 years agoRephrase comment.
Kim Grasman [Sun, 25 Aug 2013 14:07:01 +0000 (16:07 +0200)]
Rephrase comment.

10 years agoRudimentary support for imports. Ignored in sema.
Kim Grasman [Sun, 25 Aug 2013 14:00:34 +0000 (16:00 +0200)]
Rudimentary support for imports. Ignored in sema.

10 years agoRephrase comment.
Kim Grasman [Sun, 25 Aug 2013 13:16:32 +0000 (15:16 +0200)]
Rephrase comment.

10 years agoRudimentary support for parsing definitive identifiers on modules.
Kim Grasman [Sun, 25 Aug 2013 12:48:51 +0000 (14:48 +0200)]
Rudimentary support for parsing definitive identifiers on modules.

10 years agoClean up MANIFEST template.
Kim Grasman [Thu, 22 Aug 2013 09:15:52 +0000 (11:15 +0200)]
Clean up MANIFEST template.

10 years agoCodegen of object identifier values now works.
Kim Grasman [Mon, 12 Aug 2013 20:17:00 +0000 (22:17 +0200)]
Codegen of object identifier values now works.
Code generator emits a private _OID function that builds a univ.ObjectIdentifier
from literal integers, univ.Integers or univ.ObjectIdentifiers.

10 years agoSpice up packaging a little.
Kim Grasman [Mon, 5 Aug 2013 08:01:24 +0000 (10:01 +0200)]
Spice up packaging a little.

10 years agoFirst stab at codegen of OBJECT IDENTIFIER values.
Kim Grasman [Mon, 5 Aug 2013 07:48:17 +0000 (09:48 +0200)]
First stab at codegen of OBJECT IDENTIFIER values.
Improved grammar.
Better sema representation of OID values.

10 years agoBetter OBJECT IDENTIFIER value handling in sema. Additional test case with nested...
Kim Grasman [Fri, 2 Aug 2013 19:55:36 +0000 (21:55 +0200)]
Better OBJECT IDENTIFIER value handling in sema. Additional test case with nested OIDs.

10 years agoPreliminary sema support for OBJECT IDENTIFIER values.
Kim Grasman [Fri, 2 Aug 2013 16:23:37 +0000 (18:23 +0200)]
Preliminary sema support for OBJECT IDENTIFIER values.

10 years agoPreliminary parser support for OBJECT IDENTIFIER values.
Kim Grasman [Fri, 2 Aug 2013 16:03:02 +0000 (18:03 +0200)]
Preliminary parser support for OBJECT IDENTIFIER values.

10 years agoSimplify size constraint grammar.
Kim Grasman [Fri, 2 Aug 2013 15:57:49 +0000 (17:57 +0200)]
Simplify size constraint grammar.

10 years agoUpdate README with latest grammar deficiencies.
Kim Grasman [Tue, 30 Jul 2013 07:53:32 +0000 (09:53 +0200)]
Update README with latest grammar deficiencies.

10 years agoMove all official ASN.1 definitions to testdata/public. Add PKCS-12.
Kim Grasman [Mon, 29 Jul 2013 21:24:22 +0000 (23:24 +0200)]
Move all official ASN.1 definitions to testdata/public. Add PKCS-12.

10 years agoFix expr_value_list_type so it includes type name.
Kim Grasman [Mon, 29 Jul 2013 20:50:35 +0000 (22:50 +0200)]
Fix expr_value_list_type so it includes type name.

10 years agoOnly index type assignments for user_types, not value assignments.
Kim Grasman [Mon, 29 Jul 2013 20:50:01 +0000 (22:50 +0200)]
Only index type assignments for user_types, not value assignments.

10 years agoClarify comment.
Kim Grasman [Mon, 29 Jul 2013 20:29:19 +0000 (22:29 +0200)]
Clarify comment.

10 years agoSeparate out string types into its own test def.
Kim Grasman [Mon, 29 Jul 2013 16:37:14 +0000 (18:37 +0200)]
Separate out string types into its own test def.

10 years agoCodegen support for GeneralString.
Kim Grasman [Mon, 29 Jul 2013 16:30:54 +0000 (18:30 +0200)]
Codegen support for GeneralString.

10 years agoTest definition listing all builtin types.
Kim Grasman [Mon, 29 Jul 2013 16:30:23 +0000 (18:30 +0200)]
Test definition listing all builtin types.

10 years agoCodegen for inline constructed types (CHOICE, SET, SEQUENCE).
Kim Grasman [Mon, 29 Jul 2013 15:51:35 +0000 (17:51 +0200)]
Codegen for inline constructed types (CHOICE, SET, SEQUENCE).

10 years agoParser and sema support for SIZE constraints on SEQUENCE OF.
Kim Grasman [Mon, 29 Jul 2013 15:34:27 +0000 (17:34 +0200)]
Parser and sema support for SIZE constraints on SEQUENCE OF.