この規格ページの目次
18
X 0138-2 : 2004 (ISO/IEC 15475-2 : 2002)
3) #| hello ... <eof> - 無効 (区切り記号が均衡していない)
注2) これらのコメントの例は,表記上用いる復帰,改行のような空白類文字を使って示す。
<eof>は,ファイルの最後を表すために用いる。
7.7 構文終端記号
この構文の終端記号を次に示す。これらの表現は,使用する特定の符号化に依存す
る。この規格の例としてJIS X 0138-3のENCODING.1を使用する。
<Absolute>
<AbsoluteUTC>
<AbsoluteLocal>
<BinaryValue>
<BitmapKeyword>
<CloseScope>
<Comment>
<Date>
<DateKeyword>
<DecimalIntegerValue>
<Dot>
<EnumeratedSeparator>
<EnumeratedValue>
<ExtendMetaAttributeKeyword>
<FalseValue>
<FloatValue>
<HeaderKeyword>
<HeightKeyword>
<HexaDecimalValue>
<Identifier>
<IdentifierValue>
<Integer>
<IntegerListKeyword>
<ListSeparator>
<MetaModelKeyword>
<MetaMetaObjectName>
<MetaObjectName>
<ModelKeyword>
<OctalValue>
<OpenScope>
<PixelIntensity>
<PixelSeparator>
<PointKeyword>
<PointListKeyword>
――――― [JIS X 0138-2 pdf 21] ―――――
19
X 0138-2 : 2004 (ISO/IEC 15475-2 : 2002)
<PointSeparator>
<PositiveInteger>
<RelativeNegative>
<RelativePositive>
<String>
<SubjectAreaReferenceKeyword>
<SummaryKeyword>
<TextString>
<Time>
<TimeKeyword>
<TrueValue>
<VersionNumberKeyword>
<WidthKeyword>
次の終端記号は,この構文の文法内のキーワードとして使用する。
<BitmapKeyword>
<DateKeyword>
<ExtendMetaAttributeKeyword>
<HeaderKeyword>
<HeightKeyword>
<IntegerListKeyword>
<MetaModelKeyword>
<ModelKeyword>
<PointKeyword>
<PointListKeyword>
<SubjectAreaReferenceKeyword>
<SummaryKeyword>
<TimeKeyword>
<VersionNumberKeyword>
<WidthKeyword>
次の終端記号は,この構文の字句分離子として作用する。
<CloseScope>
<Dot>
<EnumeratedSeparator>
<ListSeparator>
<OpenScope>
<PixelSeparator>
<PointSeparator>
――――― [JIS X 0138-2 pdf 22] ―――――
21
X 0138-2 : 2004 (ISO/IEC 15475-2 : 2002)
附属書A(規定)SYNTAX.1形式文法
ここでは,7. で示す構文をまとめて規定する。BNF単独でSYNTAX.1を完全に規定したわけではない。
追加の定義及び制約は, 6. 及び 7. に規定する。
<TransferContents> ::= <HeaderSectionClause>
<MetaModelSectionClause>
[ <ModelSectionClause> ]
<HeaderSectionClause> ::= <OpenScope>
<HeaderKeyword>
<SummaryClause>
<CloseScope>
<SummaryClause> ::= <OpenScope>
<SummaryKeyword>
[ <IdentifierValuePair> ] ...
<CloseScope>
<IdentifierValuePair> ::= <OpenScope>
<SummaryIdentifier> <StringValue>
<CloseScope>
<SummaryIdentifier> ::= <Identifier>
<MetaModelSectionClause> ::=
<OpenScope>
<MetaModelKeyword>
<CDIFSubjectAreaReferenceClause>...
[ <MetaModelExtensionClause> ]...
<CloseScope>
<CDIFSubjectAreaReferenceClause> ::=
<OpenScope>
<SubjectAreaReferenceKeyword>
<SubjectAreaName>
<OpenScope>
<VersionNumberKeyword>
<SubjectAreaVersionNumber>
<CloseScope>
<CloseScope>
<SubjectAreaName> ::= <MetaObjectName>
!!<SubjectAreaName> must be the value of the Name
meta-meta-attribute of the relevant SubjectArea instance.
<SubjectAreaVersionNumber> ::=
<String>
――――― [JIS X 0138-2 pdf 23] ―――――
22
X 0138-2 : 2004 (ISO/IEC 15475-2 : 2002)
!! <SubjectAreaVersionNumber> must be the value of the
VersionNumber meta-meta-attribute of the relevant SubjectArea
instance. A reference to at least one CDIF Subject Area must be
included in the metamodel section Clause.
<MetaModelExtensionClause> ::=
<MetaMetaEntityInstance>
| <MetaMetaRelationshipInstance>
| <EnumeratedMetaAttributeExtension>
<MetaMetaEntityInstance> ::=
<OpenScope>
<MetaMetaEntityName> <CDIFMetaIdentifier>
[ <MetaMetaAttributeInstance> ] ...
<CloseScope>
<MetaMetaEntityName> ::=
<MetaMetaObjectName>
!! <MetaMetaEntityName> must be the name of a meta-meta-entity,
as defined in ISO/IEC 15474-2, e.g., MetaEntity,
MetaRelationship, MetaAttribute or SubjectArea.
<MetaMetaAttributeInstance> ::=
<OpenScope>
<MetaMetaAttributeName> <MetaMetaAttributeValue>
<CloseScope>
<MetaMetaAttributeName> ::=
<MetaMetaObjectName>
<MetaMetaAttributeValue> ::=
<MetaAttributeValue>
!! <MetaMetaAttributeName> must be the name of a
meta-meta-attribute associated with the meta-meta-entity,
as defined in ISO/IEC 15474-2.
<MetaMetaRelationshipInstance> ::=
<OpenScope>
<FullMetaMetaRelationshipName>
<SourceMetaMetaEntityCDIFMetaIdentifier>
<DestinationMetaMetaEntityCDIFMetaIdentifier>
<CloseScope>
<FullMetaMetaRelationshipName> ::=
<SourceMetaMetaEntityName> <Dot>
<MetaMetaRelationshipName> <Dot>
<DestinationMetaMetaEntityName>
!! <FullMetaMetaRelationshipName> must be the full name of
――――― [JIS X 0138-2 pdf 24] ―――――
23
X 0138-2 : 2004 (ISO/IEC 15475-2 : 2002)
a meta-meta-relationship, as defined in ISO/IEC 15474-2.
<SourceMetaMetaEntityName> ::=
<MetaMetaObjectName>
<MetaMetaRelationshipName> ::=
<MetaMetaObjectName>
<DestinationMetaMetaEntityName> ::=
<MetaMetaObjectName>
<SourceMetaMetaEntityCDIFMetaIdentifier> ::=
<CDIFMetaIdentifier>
<DestinationMetaMetaEntityCDIFMetaIdentifier> ::=
<CDIFMetaIdentifier>
<CDIFMetaIdentifier> ::= <Identifier>
<EnumeratedMetaAttributeExtension> ::=
<OpenScope>
<ExtendMetaAttributeKeyword> <CDIFMetaIdentifier>
<OpenScope>
<EnumeratedValue>
[<EnumeratedSeparator>
<EnumeratedValue>]...
<CloseScope>
<CloseScope>
<ModelSectionClause> ::= <OpenScope>
<ModelKeyword> <ObjectClause>...
<CloseScope>
<ObjectClause> ::=
<MetaEntityInstance> | <MetaRelationshipInstance>
<MetaEntityInstance> ::= <OpenScope>
<MetaEntityName> <CDIFIdentifier>
[ <MetaAttributeInstance> ] ...
<CloseScope>
<MetaEntityName> ::=
<MetaObjectName>
<MetaRelationshipInstance> ::=
<OpenScope>
<FullMetaRelationshipName>
<MetaRelationshipCDIFIdentifier>
<SourceMetaEntityCDIFIdentifier>
<DestinationMetaEntityCDIFIdentifier>
[ <MetaAttributeInstance> ] ...
<CloseScope>
――――― [JIS X 0138-2 pdf 25] ―――――
次のページ PDF 26
JIS X 0138-2:2004の引用国際規格 ISO 一覧
- ISO/IEC 15475-2:2002(IDT)
JIS X 0138-2:2004の国際規格 ICS 分類一覧
JIS X 0138-2:2004の関連規格と引用規格一覧
- 規格番号
- 規格名称