Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
8ea99488
Commit
8ea99488
authored
Mar 31, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opaque WITH SYNTAX
parent
56784c00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
921 additions
and
995 deletions
+921
-995
libasn1parser/asn1p_y.c
libasn1parser/asn1p_y.c
+918
-962
libasn1parser/asn1p_y.y
libasn1parser/asn1p_y.y
+3
-33
No files found.
libasn1parser/asn1p_y.c
View file @
8ea99488
This source diff could not be displayed because it is too large. You can
view the blob
instead.
libasn1parser/asn1p_y.y
View file @
8ea99488
...
@@ -234,9 +234,6 @@ static asn1p_value_t *
...
@@ -234,9 +234,6 @@ static asn1p_value_t *
%type <a_expr> DefinedTypeRef
%type <a_expr> DefinedTypeRef
%type <a_expr> ValueSetDefinition /* Val INTEGER ::= {1|2} */
%type <a_expr> ValueSetDefinition /* Val INTEGER ::= {1|2} */
%type <a_expr> ValueDefinition /* val INTEGER ::= 1*/
%type <a_expr> ValueDefinition /* val INTEGER ::= 1*/
%type <a_expr> optValueSetBody
%type <a_expr> ValueSetBody
%type <a_expr> ValueSetElement
%type <a_value> Value
%type <a_value> Value
%type <a_value> DefinedValue
%type <a_value> DefinedValue
%type <a_value> SignedNumber
%type <a_value> SignedNumber
...
@@ -686,12 +683,13 @@ ExportsElement:
...
@@ -686,12 +683,13 @@ ExportsElement:
ValueSetDefinition:
ValueSetDefinition:
TypeRefName DefinedTypeRef TOK_PPEQ '{' optValueSetBody '}' {
TypeRefName DefinedTypeRef TOK_PPEQ
'{' { asn1p_lexer_hack_push_opaque_state(); } Opaque /* '}' */ {
$$ = $2;
$$ = $2;
assert($$->Identifier == 0);
assert($$->Identifier == 0);
$$->Identifier = $1;
$$->Identifier = $1;
$$->meta_type = AMT_VALUESET;
$$->meta_type = AMT_VALUESET;
// take care of
optValueSetBody
// take care of
ValueSet body
}
}
;
;
...
@@ -711,40 +709,12 @@ DefinedTypeRef:
...
@@ -711,40 +709,12 @@ DefinedTypeRef:
}
}
;
;
optValueSetBody:
{ }
| ValueSetBody {
}
;
/*
* X.680 does not permit ElementSetSpecs starting with ellipsis,
* i.e. (..., A, B). This is very strange: the ElementSetSpecs is used
* inside ValueSet, and ValueSets "in the wild" tend to have the first
* ellipsis.
*/
ValueSetBody:
ValueSetElement {
}
| ValueSetBody ',' ValueSetElement {
}
;
ValueSetElement:
TOK_ThreeDots {
}
| ElementSetSpec {
}
;
/*
/*
* Data Type Reference.
* Data Type Reference.
* === EXAMPLE ===
* === EXAMPLE ===
* Type3 ::= CHOICE { a Type1, b Type 2 }
* Type3 ::= CHOICE { a Type1, b Type 2 }
* === EOF ===
* === EOF ===
*/
*/
DataTypeReference:
DataTypeReference:
/*
/*
* Optionally tagged type definition.
* Optionally tagged type definition.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment