我的模式设计如下。
Motorcar ::= SEQUENCE {
carRegNumber VisibleString
}
Bicycle ::= SEQUENCE {
bicycleColor VisibleString,
bicycleModel VisibleString
}
Boat ::= SEQUENCE {
boatRegNumber VisibleString
}
PreferredVehicle ::= CHOICE { car Motorcar, bicycle Bicycle, boat Boat }
Person ::= SEQUENCE {
name VisibleString,
id VisibleString,
preferredVehicle PreferredVehicle
}
当我在'
http://asn1-playground.oss.com/
,编译成功。
但是,当我创建Person类型的对象时,我会出错。
myBicycle Bicycle ::= {
bicycleColor "Blue",
bicycleModel "Hero 42M"
}
person Person ::= {
name "Rama Krishna",
id "I123456",
preferredVehicle myBicycle
}
谁能告诉我我的模式和数据有什么问题吗。