Skip to content

Commit

Permalink
Fix handling of named bits in BIT STRING
Browse files Browse the repository at this point in the history
Bug: #2
  • Loading branch information
chemikadze committed Oct 12, 2022
1 parent 805efdd commit 4463793
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 70 deletions.
2 changes: 1 addition & 1 deletion asn1.y
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ BitStringType : BIT STRING { $$ = BitStringType{} }
;

NamedBitList : NamedBit { $$ = append(make([]NamedBit, 0), $1) }
| NamedBitList "," NamedBit { $$ = append($1, $3) }
| NamedBitList COMMA NamedBit { $$ = append($1, $3) }
;

NamedBit : identifier OPEN_ROUND number CLOSE_ROUND { $$ = NamedBit{Name: Identifier($1), Index: $3} }
Expand Down
137 changes: 68 additions & 69 deletions y.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4463793

Please sign in to comment.