Kim Grasman [Fri, 25 Jul 2014 16:29:12 +0000 (18:29 +0200)]
Better type and value name sanitization.
Kim Grasman [Fri, 25 Jul 2014 15:03:37 +0000 (17:03 +0200)]
Support size and single-value constraints on some types.
Kim Grasman [Fri, 25 Jul 2014 09:40:04 +0000 (11:40 +0200)]
Parse and ignore external value references.
Kim Grasman [Fri, 25 Jul 2014 09:36:17 +0000 (11:36 +0200)]
Parse and ignore external type references.
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.
Kim Grasman [Thu, 24 Jul 2014 13:58:33 +0000 (15:58 +0200)]
Test case for circular assignment dependencies.
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.
Kim Grasman [Mon, 2 Jun 2014 18:59:36 +0000 (20:59 +0200)]
Add batch file for PyPI publishing.
Kim Grasman [Mon, 2 Jun 2014 18:45:41 +0000 (20:45 +0200)]
Add classifiers and bump version.
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.
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.
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!
Giovanni Bajo [Mon, 14 Apr 2014 14:27:51 +0000 (16:27 +0200)]
Formatting
Giovanni Bajo [Mon, 14 Apr 2014 14:27:45 +0000 (16:27 +0200)]
Use Unique() function
Giovanni Bajo [Tue, 8 Apr 2014 16:38:12 +0000 (18:38 +0200)]
Add support for ENUMERATED in identifier-only form
Kim Grasman [Mon, 6 Jan 2014 10:47:49 +0000 (11:47 +0100)]
Reorder builtin translations.
Kim Grasman [Mon, 6 Jan 2014 10:16:12 +0000 (11:16 +0100)]
Support for hex string literals.
Kim Grasman [Sun, 5 Jan 2014 09:31:51 +0000 (10:31 +0100)]
Fix up comment.
Kim Grasman [Sun, 5 Jan 2014 09:27:54 +0000 (10:27 +0100)]
Handle BinaryStringValue in codegen.
Kim Grasman [Sat, 4 Jan 2014 22:01:36 +0000 (23:01 +0100)]
Simplify grammar to more correctly parse bstrings.
Kim Grasman [Sat, 4 Jan 2014 21:50:12 +0000 (22:50 +0100)]
Disallow empty file.
This fixes error detection, if not reporting.
Kim Grasman [Sat, 4 Jan 2014 21:34:52 +0000 (22:34 +0100)]
Rename test data.
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.
Kim Grasman [Thu, 2 Jan 2014 08:35:12 +0000 (09:35 +0100)]
Support extension markers in ENUMERATED.
Based on patch by James Ward.
Kim Grasman [Wed, 1 Jan 2014 17:41:10 +0000 (18:41 +0100)]
Support IA5String type.
Patch by James Ward.
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.
Kim Grasman [Wed, 1 Jan 2014 15:20:17 +0000 (16:20 +0100)]
Ignore todo.txt
Kim Grasman [Wed, 9 Oct 2013 14:48:17 +0000 (16:48 +0200)]
Remove trailing-semicolon extension.
Kim Grasman [Sat, 21 Sep 2013 12:07:41 +0000 (14:07 +0200)]
Allow empty module body. Sema now sees exports, imports and assignments.
Kim Grasman [Fri, 20 Sep 2013 20:41:33 +0000 (22:41 +0200)]
Flow IMPORTS and EXPORTS through to sema. Not used there yet.
Kim Grasman [Fri, 20 Sep 2013 20:30:46 +0000 (22:30 +0200)]
Use EXPORTS ALL; instead of EXPORTS EVERYTHING;
Kim Grasman [Fri, 20 Sep 2013 20:30:04 +0000 (22:30 +0200)]
Make semicolons required in IMPORTS and EXPORTS.
JohnTESlade [Fri, 20 Sep 2013 15:44:20 +0000 (16:44 +0100)]
Support both import and export in same file
JohnTESlade [Fri, 20 Sep 2013 15:26:01 +0000 (16:26 +0100)]
Support ASN1 with EXPORTS
JohnTESlade [Fri, 20 Sep 2013 13:26:39 +0000 (14:26 +0100)]
Add bash testing script
Kim Grasman [Tue, 3 Sep 2013 18:39:59 +0000 (20:39 +0200)]
Codegen actual useful.ObjectDescriptor type, now supported in pyasn1.
Kim Grasman [Thu, 29 Aug 2013 18:45:08 +0000 (20:45 +0200)]
Support PrintableString.
Kim Grasman [Thu, 29 Aug 2013 18:43:31 +0000 (20:43 +0200)]
Support NumericString.
Kim Grasman [Thu, 29 Aug 2013 15:46:59 +0000 (17:46 +0200)]
Add note on semantic analysis to TODO list.
Kim Grasman [Wed, 28 Aug 2013 14:20:49 +0000 (16:20 +0200)]
Update README on grammar weaknesses.
Kim Grasman [Wed, 28 Aug 2013 14:09:30 +0000 (16:09 +0200)]
Support Useful types and their values.
Kim Grasman [Wed, 28 Aug 2013 13:00:20 +0000 (15:00 +0200)]
Change from BUG to EXT for extensions to the spec
Kim Grasman [Wed, 28 Aug 2013 12:57:28 +0000 (14:57 +0200)]
Fix restricted integer type.
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.
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.
Kim Grasman [Tue, 27 Aug 2013 19:14:31 +0000 (21:14 +0200)]
Support for GeneralizedTime and UTCTime
Based on patch by Maurizio Papini.
Kim Grasman [Sun, 25 Aug 2013 19:21:46 +0000 (21:21 +0200)]
Fix restricted integer type. Now works all the way through codegen.
Kim Grasman [Sun, 25 Aug 2013 18:38:40 +0000 (20:38 +0200)]
Remove commented out grammar rule.
Kim Grasman [Sun, 25 Aug 2013 18:34:39 +0000 (20:34 +0200)]
Add doc comment to Type.
Kim Grasman [Sun, 25 Aug 2013 18:34:29 +0000 (20:34 +0200)]
Change from BUG to EXT for extensions to the spec.
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.
Kim Grasman [Sun, 25 Aug 2013 18:01:16 +0000 (20:01 +0200)]
Allow including source filename in auto-generated header.
Kim Grasman [Sun, 25 Aug 2013 14:07:01 +0000 (16:07 +0200)]
Rephrase comment.
Kim Grasman [Sun, 25 Aug 2013 14:00:34 +0000 (16:00 +0200)]
Rudimentary support for imports. Ignored in sema.
Kim Grasman [Sun, 25 Aug 2013 13:16:32 +0000 (15:16 +0200)]
Rephrase comment.
Kim Grasman [Sun, 25 Aug 2013 12:48:51 +0000 (14:48 +0200)]
Rudimentary support for parsing definitive identifiers on modules.
Kim Grasman [Thu, 22 Aug 2013 09:15:52 +0000 (11:15 +0200)]
Clean up MANIFEST template.
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.
Kim Grasman [Mon, 5 Aug 2013 08:01:24 +0000 (10:01 +0200)]
Spice up packaging a little.
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.
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.
Kim Grasman [Fri, 2 Aug 2013 16:23:37 +0000 (18:23 +0200)]
Preliminary sema 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.
Kim Grasman [Fri, 2 Aug 2013 15:57:49 +0000 (17:57 +0200)]
Simplify size constraint grammar.
Kim Grasman [Tue, 30 Jul 2013 07:53:32 +0000 (09:53 +0200)]
Update README with latest grammar deficiencies.
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.
Kim Grasman [Mon, 29 Jul 2013 20:50:35 +0000 (22:50 +0200)]
Fix expr_value_list_type so it includes type name.
Kim Grasman [Mon, 29 Jul 2013 20:50:01 +0000 (22:50 +0200)]
Only index type assignments for user_types, not value assignments.
Kim Grasman [Mon, 29 Jul 2013 20:29:19 +0000 (22:29 +0200)]
Clarify comment.
Kim Grasman [Mon, 29 Jul 2013 16:37:14 +0000 (18:37 +0200)]
Separate out string types into its own test def.
Kim Grasman [Mon, 29 Jul 2013 16:30:54 +0000 (18:30 +0200)]
Codegen support for GeneralString.
Kim Grasman [Mon, 29 Jul 2013 16:30:23 +0000 (18:30 +0200)]
Test definition listing all builtin types.
Kim Grasman [Mon, 29 Jul 2013 15:51:35 +0000 (17:51 +0200)]
Codegen for inline constructed types (CHOICE, SET, SEQUENCE).
Kim Grasman [Mon, 29 Jul 2013 15:34:27 +0000 (17:34 +0200)]
Parser and sema support for SIZE constraints on SEQUENCE OF.
Kim Grasman [Mon, 29 Jul 2013 15:17:36 +0000 (17:17 +0200)]
Fix line endings.
Kim Grasman [Mon, 29 Jul 2013 15:16:40 +0000 (17:16 +0200)]
Sema support for SIZE constraints.
Kim Grasman [Mon, 29 Jul 2013 08:28:56 +0000 (10:28 +0200)]
Parser support for SIZE constraints on SET OF and SEQUENCE OF.
Kim Grasman [Sun, 28 Jul 2013 21:55:07 +0000 (23:55 +0200)]
Sema and codegen support for SET.
Kim Grasman [Sun, 28 Jul 2013 21:51:42 +0000 (23:51 +0200)]
Add parser support for SET.
Kim Grasman [Sun, 28 Jul 2013 21:42:26 +0000 (23:42 +0200)]
Codegen support for OBJECT IDENTIFIER.
Kim Grasman [Sun, 28 Jul 2013 21:39:02 +0000 (23:39 +0200)]
Add parser support for OBJECT IDENTIFIER.
Still not handled correctly in codegen.
Kim Grasman [Sun, 28 Jul 2013 21:00:47 +0000 (23:00 +0200)]
Remove now-unused function.
Kim Grasman [Sun, 28 Jul 2013 20:55:44 +0000 (22:55 +0200)]
Null sema and codegen support for extension marker (...)
Kim Grasman [Sun, 28 Jul 2013 20:44:58 +0000 (22:44 +0200)]
Parser support for extension marker (...).
Still no sema or codegen support.
Kim Grasman [Tue, 23 Jul 2013 13:58:39 +0000 (15:58 +0200)]
Clarify commentary on sema.
Kim Grasman [Sun, 21 Jul 2013 08:16:39 +0000 (10:16 +0200)]
Adopt assignments terminology in topological_sort.
Kim Grasman [Sun, 21 Jul 2013 08:10:34 +0000 (10:10 +0200)]
Rename declarations -> assignments.
Kim Grasman [Sun, 21 Jul 2013 07:50:06 +0000 (09:50 +0200)]
Support for inline value-lists, e.g. ENUMERATED.
Kim Grasman [Sat, 20 Jul 2013 21:09:50 +0000 (23:09 +0200)]
Attempt to fix problems with type assignments referencing the type being assigned.
Kim Grasman [Sat, 20 Jul 2013 20:51:45 +0000 (22:51 +0200)]
Remove dead TODO.
Kim Grasman [Sat, 20 Jul 2013 20:51:29 +0000 (22:51 +0200)]
Make pyasn1 generator support value range constraints in top-level decls.
Kim Grasman [Sat, 20 Jul 2013 20:47:59 +0000 (22:47 +0200)]
Preliminary support for COMPONENTS OF
Kim Grasman [Sat, 20 Jul 2013 19:35:44 +0000 (21:35 +0200)]
Use print_parse_tree to print the parse result as an indented tree.
Kim Grasman [Fri, 12 Jul 2013 14:12:51 +0000 (16:12 +0200)]
Rename all ASN.1 defs .asn to make Emacs recognize them.
Kim Grasman [Fri, 12 Jul 2013 14:01:50 +0000 (16:01 +0200)]
Ignore patches and rope project dirs.
Kim Grasman [Fri, 12 Jul 2013 14:00:53 +0000 (16:00 +0200)]
Parser and sema now handle value references in constraints.
Kim Grasman [Fri, 12 Jul 2013 13:22:01 +0000 (15:22 +0200)]
Support for value assignment and rudimentary support for value references.
Kim Grasman [Fri, 12 Jul 2013 10:03:30 +0000 (12:03 +0200)]
Teach parser to recognize value references.
Kim Grasman [Fri, 12 Jul 2013 10:03:13 +0000 (12:03 +0200)]
Teach sema to recognize value assignments.
Kim Grasman [Fri, 12 Jul 2013 09:58:31 +0000 (11:58 +0200)]
Add test driver with options for the various stages.