esnacc / esnacc-ng

A continuation of the Enhanced SNACC ASN.1 compiler - See http://mail.esnacc.org/mailman/listinfo/dev
http://esnacc.org
GNU General Public License v2.0
32 stars 30 forks source link

Support AUTOMATIC tags #18

Closed apconole closed 8 years ago

apconole commented 8 years ago

Currently, esnacc does not support the 1997 ASN.1 syntax extension for automatic tagging. There are numerous places where such a facility would improve readability and usability.

Add this feature. To get the initial parsing:

  1. Add AUTOMATIC_SYM to the y.tab.y's token, TagDefault; update asn1module.h with an enum value for automatic tagging, and add lex-asn1.l parser to emit the AUTOMATIC_SYM.
  2. Add a counter tracking framework (for sub-sequence support)
  3. Use the counter-tracking framework when tag-type is AUTOMATIC

Needs some examples / test code as well.

apconole commented 8 years ago

Experimental support is added for this. Still needs testing and development on the C-side.