1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
|
###############################################################################
# Copyright (c) 2000-2021 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Balasko, Jeno
# Beres, Szabolcs
#
###############################################################################
[DEFINE]
# _f means "faulty"
#DEF_1_f1 := \"asdf\" //faulty
#DEF_1_f2 := ""asdf"" //faulty
#DEF_2 := "a""b"
// Escape characters
DEF_1:="a"
DEF_2 := "abr"${DEF_1}"kadabra"
num1 := 1
num2:=2
//==== Structured ====
// multiline stuff
/*
DEF_11 := 1
DEF_1_1 := { i := ${DEF_11}}
*/
DEF_3_1 := { f1 := { f2 := { f3:="a"}}}
DEF_3_2 := {
f1 := {
f2 :=/*anyth{{ing*/{
f3:="a"}}} // => {f1:={f2:={f3:="a"}}}
DEF_3_3 := { f1 := { f2 := { f3:= \"${DEF_2}\" }}}
/*
DEF_4_f := {asdf#{{
}
*/
DEF_4 := { "asdf" #{{
}
a := 7.2
b := 2.0
DEF_5_1 := { { ${a} }}
DEF_5_2 := { { ${a}/${b} }} //???
DEF_20 := 1 // 1 as charstring by default
DEF_21 := "1" // 1 as charstring
DEF_22 := "\"1\"" // "1" as charstring
DEF_23 := a // a as charstring
DEF_24 := "a" // a as charstring
DEF_25 := "\"a\"" // "a" as charstring
DEF_26 := { f3 := "a"}
//DEF_50 := { f1 := { f2 := { f3 := a}}} // => DEF_37 := { f1 := a}
DEF_S_f := {a}
DEF_S2_f := {\a}
DEF_30 := { f3 := \"${DEF_20}\" } // => DEF_30 := { f3 := "1"}
DEF_31 := { f3 := \"${DEF_21}\"} // => DEF_31 := { f3 := "1"}
DEF_32 := { f3 := ${DEF_22}} // => DEF_32 := { f3 := "1"}
DEF_33 := { f3 := \"${DEF_23}\"} // => DEF_33 := { f3 := "a"}
DEF_34 := { f3 := \"${DEF_24}\"} // => DEF_34 := { f3 := "a"}
DEF_35 := { f3 := \"${DEF_24}\"} // => DEF_35 := { f3 := "a"} //FIXME!!!
# => DEF_35 := { f1 := "a"}
DEF_36 := { f3 := ${DEF_25}} // => DEF_36 := { f3 := "a"}
DEF_37 := { f3 := \"a\" } // => DEF_37 := { f3 := "a"}
DEF_38 := { f3 := "a"} // => DEF_38 := { f3 := "a"}
DEF_39 := { f3 := "${DEF_20}"} //=> DEF_39 :={ f3 := "${DEF_20}"
DEF_40 := ""
DEF_41 := {}
DEF_42 := { }
DEF_43 := {
}
DEF_44 := {{},{},{}, { } ,{ } }
DEF_50 := { { ${DEF_40} },${DEF_41},${DEF_42},${DEF_43} }
DEF_E1 := {
i:=0,
f:=3.14,
bs:='0011'B,
hs:='123AF'H,
os:='0123AF'O,
cs:="hello"
}
DEF_BS:="\'0011\'B"
DEF_HS:="\'123AF\'H"
DEF_OS:="\'0123AF\'O"
DEF_CS:="\""${DEF_2}"\""
#DEF_CS:=""${DEF_2}"" <- not ok
DEF_E2 := {
i:=${num1},
f:=${a},
bs:= ${DEF_BS},
hs:= ${DEF_HS},
os:= ${DEF_OS},
cs:= ${DEF_CS}
}
DEF_E3 := {
i:=${num1},
f:=${a},
bs:= ${DEF_BS},
hs:= ${DEF_HS},
os:= ${DEF_OS},
cs:= "\""${DEF_2}"\""
}
DEF_E4 := {
i:=${num1},
f:=${a},
bs:= ${DEF_BS},
hs:= ${DEF_HS},
os:= ${DEF_OS},
cs:= \"${DEF_2}\"
}
//Union:
DEF_U_i := { i:= ${num1} }
DEF_U_f := { f:= ${a} }
DEF_U_bs := { bs:= ${DEF_BS} }
DEF_U_hs := { hs:= ${DEF_HS} }
DEF_U_os := { os:= ${DEF_OS} }
DEF_U_cs1 := { cs:= \"${DEF_2}\" }
DEF_U_cs2 := { cs:= ${DEF_CS} }
DEF_CR1 := {
rf_PowerCapability := '000'B, // '000'B class1 (for GSM+DCS+PCS)
a5_1 := '0'B, //encryption algorithm A5/1 available ('1'B) or not ('0'B)
esind := '0'B,//controlled early classmark sending implemented ('1'B) or not ('0'B)
revisionLevel := '01'B, // '00'B reserved for phase1 (GSM+DCS)
spare1_1 := '0'B,
fc := '0'B, // MS' support of E/R_GSM ('1'B) or not ('0'B)
vgcs := '0'B, // VGCS capability or notification wanted ('1'B) or not ('0'B)
vbs := '0'B, // VBS capability or notification wanted ('1'B) or not ('0'B)
sm_Capability := '1'B, // SM capbility present ('1'B) or not ('0'B)
ss_ScreenIndicator := '01'B, // '00'B default value of phase1 (GSM+DCS)
ps_Capability := '0'B, // ignored, if received
spare2_1 := '0'B,
classmarkInformationType2_oct5 :=
{ a5_2 := '0'B,
a5_3 := '0'B,
cmsp := '0'B,
solsa := '0'B,
ucs2 := '0'B,
lcsvacap := '1'B,
spare := '0'B,
cm3 := '1'B
}
}
DEF_CIT := { a5_2 := '0'B,
a5_3 := '0'B,
cmsp := '0'B,
solsa := '0'B,
ucs2 := '0'B,
lcsvacap := '1'B,
spare := '0'B,
cm3 := '1'B
}
DEF_CR2 := {
rf_PowerCapability := '000'B, // '000'B class1 (for GSM+DCS+PCS)
a5_1 := '0'B, //encryption algorithm A5/1 available ('1'B) or not ('0'B)
esind := '0'B,//controlled early classmark sending implemented ('1'B) or not ('0'B)
revisionLevel := '01'B, // '00'B reserved for phase1 (GSM+DCS)
spare1_1 := '0'B,
fc := '0'B, // MS' support of E/R_GSM ('1'B) or not ('0'B)
vgcs := '0'B, // VGCS capability or notification wanted ('1'B) or not ('0'B)
vbs := '0'B, // VBS capability or notification wanted ('1'B) or not ('0'B)
sm_Capability := '1'B, // SM capbility present ('1'B) or not ('0'B)
ss_ScreenIndicator := '01'B, // '00'B default value of phase1 (GSM+DCS)
ps_Capability := '0'B, // ignored, if received
spare2_1 := '0'B,
classmarkInformationType2_oct5 := ${DEF_CIT}
}
//DEF_BS2 := "\'000\'B"
DEF_BS2 := "'000'B"
DEF_BS3 := "'0'B"
DEF_BS4 := "'01'B"
DEF_CR3 := {
rf_PowerCapability := ${DEF_BS2}, // '000'B class1 (for GSM+DCS+PCS)
a5_1 := ${DEF_BS3}, //encryption algorithm A5/1 available ('1'B) or not ('0'B)
esind := ${DEF_BS3} ,//controlled early classmark sending implemented ('1'B) or not ('0'B)
revisionLevel :=${DEF_BS4}, // '00'B reserved for phase1 (GSM+DCS)
spare1_1:=${DEF_BS3},
fc :=${DEF_BS3} , // MS' support of E/R_GSM ('1'B) or not ('0'B)
vgcs := ${DEF_BS3}, // VGCS capability or notification wanted ('1'B) or not ('0'B)
vbs := '0'B, // VBS capability or notification wanted ('1'B) or not ('0'B)
sm_Capability := '1'B, // SM capbility present ('1'B) or not ('0'B)
ss_ScreenIndicator := '01'B, // '00'B default value of phase1 (GSM+DCS)
ps_Capability := '0'B, // ignored, if received
spare2_1 := '0'B,
classmarkInformationType2_oct5 := ${DEF_CIT}
}
[MODULE_PARAMETERS]
tsp_1 := ${DEF_1}
tsp_2 := ${DEF_2}
tsp_3_1 := ${DEF_3_1}
tsp_3_2 := ${DEF_3_2}
tsp_3_3 := ${DEF_3_3}
tsp_4 := ${DEF_4} //"asdf"
tsp_5_1 := ${DEF_5_1}
tsp_5_2 := ${DEF_5_2}
tsp_30 :=${DEF_30}
tsp_31 := ${DEF_31}
tsp_32 := ${DEF_32}
tsp_33 := ${DEF_33}
tsp_34 := ${DEF_34}
tsp_35 := ${DEF_35}
tsp_36 := ${DEF_36}
tsp_37 := ${DEF_37}
tsp_38 := ${DEF_38}
tsp_39 := ${DEF_39}
tsp_41 := ${DEF_41}
tsp_42 := ${DEF_42}
tsp_43 := ${DEF_43}
tsp_44 := ${DEF_44}
tsp_50 :=${ DEF_50 }
//records:
structured.tsp_e1 := ${DEF_E1}
structured.tsp_e2 := ${DEF_E2}
structured.tsp_e3 := ${DEF_E3}
structured.tsp_e4 := ${DEF_E4}
//unions:
tsp_U_i := ${DEF_U_i}
tsp_U_f := ${DEF_U_f}
tsp_U_bs := ${DEF_U_bs}
tsp_U_hs := ${DEF_U_hs}
tsp_U_os := ${DEF_U_os}
tsp_U_cs1 := ${DEF_U_cs1}
tsp_U_cs2 := ${DEF_U_cs2}
tsp_CR1:= ${DEF_CR1}
tsp_CR2:= ${DEF_CR2}
tsp_CR3:= ${DEF_CR3}
[EXECUTE]
structured.control
|