forked from vlm/asn1c
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from v0-e/with-successors-support
WITH SUCCESSORS/DESCENDANTS support
- Loading branch information
Showing
12 changed files
with
203 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
tests/tests-asn1c-compiler/161-imports-with-successors-OK.asn1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
-- OK: Everything is fine | ||
|
||
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) | ||
-- .spelio.software.asn1c.test (9363.1.5.1) | ||
-- .121 | ||
|
||
ModuleIMPORTS | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 161 } | ||
DEFINITIONS AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS ImportedType | ||
FROM ImportedModule1 | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 161 minor-version-1(1) } | ||
WITH SUCCESSORS | ||
; | ||
|
||
Type ::= ImportedType | ||
|
||
END | ||
|
||
|
||
ImportedModule1 | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 161 minor-version-5(5)} | ||
DEFINITIONS AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS -- nothing --; | ||
|
||
ImportedType ::= INTEGER | ||
|
||
END |
36 changes: 36 additions & 0 deletions
36
tests/tests-asn1c-compiler/161-imports-with-successors-SE.asn1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
-- OK: Everything is fine | ||
|
||
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) | ||
-- .spelio.software.asn1c.test (9363.1.5.1) | ||
-- .121 | ||
|
||
ModuleIMPORTS | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 161 } | ||
DEFINITIONS AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS ImportedType | ||
FROM ImportedModule1 | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 161 minor-version-3(3) } | ||
WITH SUCCESSORS | ||
; | ||
|
||
Type ::= ImportedType | ||
|
||
END | ||
|
||
|
||
ImportedModule1 | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 161 minor-version-2(2)} | ||
DEFINITIONS AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS -- nothing --; | ||
|
||
ImportedType ::= INTEGER | ||
|
||
END |
36 changes: 36 additions & 0 deletions
36
tests/tests-asn1c-compiler/162-imports-with-successors-SE.asn1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
-- OK: Everything is fine | ||
|
||
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) | ||
-- .spelio.software.asn1c.test (9363.1.5.1) | ||
-- .121 | ||
|
||
ModuleIMPORTS | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 161 } | ||
DEFINITIONS AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS ImportedType | ||
FROM ImportedModule1 | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 161 minor-version-3(3) } | ||
WITH SUCCESSORS | ||
; | ||
|
||
Type ::= ImportedType | ||
|
||
END | ||
|
||
|
||
ImportedModule1 | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 161 minor-version-3(3) super-minor-version(1)} | ||
DEFINITIONS AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS -- nothing --; | ||
|
||
ImportedType ::= INTEGER | ||
|
||
END |
36 changes: 36 additions & 0 deletions
36
tests/tests-asn1c-compiler/163-imports-with-descendants-OK.asn1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
-- OK: Everything is fine | ||
|
||
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) | ||
-- .spelio.software.asn1c.test (9363.1.5.1) | ||
-- .121 | ||
|
||
ModuleIMPORTS | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 161 } | ||
DEFINITIONS AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS ImportedType | ||
FROM ImportedModule1 | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 163 major-version-1(1) } | ||
WITH DESCENDANTS | ||
; | ||
|
||
Type ::= ImportedType | ||
|
||
END | ||
|
||
|
||
ImportedModule1 | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 163 major-version-1(1) super-minor-version(1) super-minor-version(1)} | ||
DEFINITIONS AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS -- nothing --; | ||
|
||
ImportedType ::= INTEGER | ||
|
||
END |