IBM
Contents Index Previous Next



The TTCN Access Notation


The notation used to describe a node in TTCN Access is described as below (a simple BNF for an example node):

Node           ::= TypeReference Assign TypeAssignment
TypeReference  ::= Identifier 
            --has to start with an upper case letter
Assign         ::= "::="
TypeAssignment ::= ClassType ClassBody | "TERMINAL"
ClassType      ::= "SEQUENCE" | "SEQUENCE OF" | 
"CHOICE"
ClassBody      ::= "{" { Slot }+ "}"
Slot           ::= SlotName TypeReference
                   [ "OPTIONAL" | "FIELD"]
SlotName       ::= Identifier
             --has to start with a lower case letter

Example 168

StructTypeDef ::= SEQUENCE {
    structId          FullIdentifier  FIELD
    comment           Comment         FIELD
    elemDcls          ElemDcls
    detailedComment   DetailedComment FIELD
}

For more information see The TTCN Access Class Reference Manual.


http://www.ibm.com/rational
Contents Index Previous Next