9 wide_separator = wide_separator
"-" ;
12 ie_separator =
"-- " ;
13 for (i=
0;i
<=
137;i
++) {
14 ie_separator = ie_separator
"=" ;
19 # This will also catch bits of Short Message description but that won't cause issues
20 # A way not to catch those could be to check that the numbers are in sequence
22 /^
[0-9]+(\.
[0-9]+)*\t/ {
43 # Recording empty line (to avoid multiple empty lines)
44 # Printing separators in some cases
48 if (next_line ==
"condition") {
51 if ((next_line ==
"field description") || (next_line ==
"field name")){
56 # #if (empty_line == "yes") {
65 # Stopping before ASN.1 examples (end of specification)
66 /^
-[[:space
:]]+ParentIE
-WithEM$
/ {
70 # Start of IE definitions
71 # This cannot catch "Multiplicity and type constraints"
72 # This also cannot catch NR-InterNodeDefinitions
73 /^
-[[:space
:]]+[A
-Za
-z0
-9-]+$
/ {
74 if (empty_line ==
"yes") {
85 /^
NR-InterNodeDefinitions
/ {
86 if (empty_line ==
"yes") {
88 print "-- IE: NR-InterNodeDefinitions";
90 # Perhaps it could work without this if the "next" at the end is removed
100 # Sometimes there is an "s" to constraint, sometimes not
101 /^
-[[:space
:]]+Multiplicity and type constraints? definitions$
/ {
102 if (empty_line ==
"yes") {
104 print "-- IE: Constants";
112 #/^-[[:space:]]+Multiplicity and type constraints definitions/ {
117 /^Conditional Presence
/ {
121 $0 =
"Conditional presence" ;
122 for(i=
0;i
<=
140;i
++) {
123 separator = separator
"-" ;
126 #add_line_after = separator ;
127 next_line =
"condition" ;
130 # Need to catch "x and y field descriptions"
132 /field descriptions$
/ {
136 for(i=
0;i
<=
140;i
++) {
137 separator = separator
"-" ;
140 # add_line_after = separator ;
141 next_line =
"field name" ;
144 #/^[A-Za-z0-9-]+[[:space:]]+[A-Za-z0-9-]+/ {
145 # if (next_line == "field description") {
146 # add_line_after = separator ;
147 # next_line = "field name";
151 /^
[A
-Za
-z0
-9-]+(, [A
-Za
-z0
-9-]+)*$
/ {
152 if (next_line ==
"field name") {
157 #add_line_after = " ";
158 next_line =
"field description";
160 else if (next_line ==
"field description") {
164 #add_line_after = separator ;
165 #print "separator est " separator;
166 next_line =
"field name";
173 if (in_IE ==
"yes") {
174 if ((next_line ==
"condition") && ($1 != "Conditional")) {
176 if (index(conditions
, $1) != 0) {
178 print "-- Condition: " $1;
181 if ((in_ASN1 ==
"no") && !
(/^\s
*$
/)) {
188 if ((in_ASN1 ==
"no") && !
(/^\s
*$
/)) {
194 if (add_line_after
!= "") {
195 print add_line_after
;
196 add_line_after =
"" ;
199 if (/-- Cond
[A
-Za
-z0
-9-]+$
/) {
200 conditions = conditions
" " $NF ;