mirror of https://gerrit.osmocom.org/asn1c
support of tags after SET OF/SEQUENCE OF: SET OF [1] INTEGER
This commit is contained in:
parent
af120f7562
commit
ec208e6cfe
File diff suppressed because it is too large
Load Diff
|
@ -1076,21 +1076,23 @@ TypeDeclaration:
|
|||
$$->expr_type = ASN_CONSTR_SET;
|
||||
$$->meta_type = AMT_TYPE;
|
||||
}
|
||||
| TOK_SEQUENCE optConstraints TOK_OF TypeDeclaration {
|
||||
| TOK_SEQUENCE optConstraints TOK_OF optTag TypeDeclaration {
|
||||
$$ = asn1p_expr_new(yylineno);
|
||||
checkmem($$);
|
||||
$$->constraints = $2;
|
||||
$$->expr_type = ASN_CONSTR_SEQUENCE_OF;
|
||||
$$->meta_type = AMT_TYPE;
|
||||
asn1p_expr_add($$, $4);
|
||||
$5->tag = $4;
|
||||
asn1p_expr_add($$, $5);
|
||||
}
|
||||
| TOK_SET optConstraints TOK_OF TypeDeclaration {
|
||||
| TOK_SET optConstraints TOK_OF optTag TypeDeclaration {
|
||||
$$ = asn1p_expr_new(yylineno);
|
||||
checkmem($$);
|
||||
$$->constraints = $2;
|
||||
$$->expr_type = ASN_CONSTR_SET_OF;
|
||||
$$->meta_type = AMT_TYPE;
|
||||
asn1p_expr_add($$, $4);
|
||||
$5->tag = $4;
|
||||
asn1p_expr_add($$, $5);
|
||||
}
|
||||
| TOK_ANY {
|
||||
$$ = asn1p_expr_new(yylineno);
|
||||
|
|
Loading…
Reference in New Issue