晶体CIF文件语法中英对照.docx

上传人:b****1 文档编号:10766157 上传时间:2023-05-27 格式:DOCX 页数:37 大小:48.55KB
下载 相关 举报
晶体CIF文件语法中英对照.docx_第1页
第1页 / 共37页
晶体CIF文件语法中英对照.docx_第2页
第2页 / 共37页
晶体CIF文件语法中英对照.docx_第3页
第3页 / 共37页
晶体CIF文件语法中英对照.docx_第4页
第4页 / 共37页
晶体CIF文件语法中英对照.docx_第5页
第5页 / 共37页
晶体CIF文件语法中英对照.docx_第6页
第6页 / 共37页
晶体CIF文件语法中英对照.docx_第7页
第7页 / 共37页
晶体CIF文件语法中英对照.docx_第8页
第8页 / 共37页
晶体CIF文件语法中英对照.docx_第9页
第9页 / 共37页
晶体CIF文件语法中英对照.docx_第10页
第10页 / 共37页
晶体CIF文件语法中英对照.docx_第11页
第11页 / 共37页
晶体CIF文件语法中英对照.docx_第12页
第12页 / 共37页
晶体CIF文件语法中英对照.docx_第13页
第13页 / 共37页
晶体CIF文件语法中英对照.docx_第14页
第14页 / 共37页
晶体CIF文件语法中英对照.docx_第15页
第15页 / 共37页
晶体CIF文件语法中英对照.docx_第16页
第16页 / 共37页
晶体CIF文件语法中英对照.docx_第17页
第17页 / 共37页
晶体CIF文件语法中英对照.docx_第18页
第18页 / 共37页
晶体CIF文件语法中英对照.docx_第19页
第19页 / 共37页
晶体CIF文件语法中英对照.docx_第20页
第20页 / 共37页
亲,该文档总共37页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

晶体CIF文件语法中英对照.docx

《晶体CIF文件语法中英对照.docx》由会员分享,可在线阅读,更多相关《晶体CIF文件语法中英对照.docx(37页珍藏版)》请在冰点文库上搜索。

晶体CIF文件语法中英对照.docx

晶体CIF文件语法中英对照

Syntax

Version1.1Workingspecification

∙Introduction

∙Definitionofterms

∙Filesyntax

oGeneralfeatures

oCharacterset

oWhitespace

oEnd-of-lineconventions

oCasesensitivity

oImplementationrestrictions

▪Maximumlinelengthandcharacterset

▪Maximumdataname,blockcodeandframecodelengths

▪Single-levelloopconstructions

▪Non-expansionofsaveframereferences

▪Exclusionofglobal_blocks

∙Versionidentification

∙AppendixA:

AformalgrammarforCIF

oSummary

oExplanationoftheformalsyntax

oLexicaltokens

oCIFgrammar

∙References

Introduction

1.ThisdocumentdescribesthefullsyntaxoftheCrystallographicInformationFile(CIF).

Definitionofterms

2.ThefollowingtermsareusedintheCIFspecificationdocumentswiththespecificmeaningsindicatedhere.

∙2.1.ACIFisafileconformingtothespecificationhereinstated,containingeitherinformationonacrystallographicexperimentoritsresults(orsimilarscientificcontent);ordescriptionsofthedataidentifiersinsuchafile.

∙2.2.Adatafileisunderstoodtoconveyinformationrelatingtoacrystallographicexperiment.

∙2.3.Adictionaryfileisunderstoodtocontaininformationaboutthedataitemsinoneormoredatafilesasidentifiedbytheirdatanames.

∙2.4.Adatanameisacase-insensitiveidentifier(astringofcharactersbeginningwithanunderscorecharacter)ofthecontentofanassociateddatavalue.

∙2.5.Adatavalueisastringofcharactersrepresentingaparticularitemofinformation.Itmayrepresentasinglenumericalvalue;aletter,wordorphrase;extendeddiscursivetext;orinprincipleanycoherentunitofdatasuchasanimage,audiocliporvirtual-realityobject.

∙2.6.Adataitemisaspecificpieceofinformationdefinedbyadatanameandanassociateddatavalue.

∙2.7.Atagisunderstoodinthisdocumenttobeasynonymfordataname.

∙2.8.Adatablockisthehighest-levelcomponentofaCIF,containingdataitemsorsaveframes.Adatablockisidentifiedbyadatablockheader,whichisanisolatedcharacterstring(thatis,boundedbywhitespaceandnotformingpartofadatavalue)beginningwiththecase-insensitivereservedcharactersdata_.

∙2.9.Ablockcodeisthevariablepartofadatablockheader,e.g.thestringfoointheheaderdata_foo.

∙2.10.Asaveframeisapartitionedcollectionofdataitemswithinadatablock,startedbyasaveframeheader,whichisanisolatedcharacterstringbeginningwiththecase-insensitivereservedcharacterssave_,andterminatedwithanisolatedcharacterstringcontainingonlythecase-insensitivereservedcharacterssave_.

∙2.11.Aframecodeisthevariablepartofasaveframeheader,e.g.thestringfoointheheadersave_foo.

Filesyntax

3.ThesyntaxofCIFisapropersubsetofthesyntaxofSTARFilesasdescribedbyHall(1991)andHall&Spadaccini(1994).ThegeneralstructureisdescribedbelowundertheheadingGeneralfeatures,andanumberofsubsectionslistspecificrestrictionstotheSTARsyntaxthatareinforcewithinCIF.AformallanguagegrammarusingcomputersciencenotationisincludedasAppendixA.

Generalfeatures

4.ACIFconsistsofdatanames(tags)andassociatedvaluesorganizedintodatablocks.Adatablockmaycontaindataitems(associateddatanamesanddatavalues)and/oritmaycontainsaveframes.

5.Saveframesmayonlybeusedindictionaryfiles.

Implementationnote:

Atapurelysyntacticlevelthereisnowaytodistinguishbetweendictionaryanddatafiles.(Itisalsotobenotedthatnotalldictionaryfilescontainsaveframes.)Afullyvalidatingparsermustthereforebeabletodetectthestartandterminationofsaveframes,theuniquenessoftheframecodewithinadatablock,andtheuniquenessofdatanameswithinaframecode.Itishoweverlegitimateforanapplication-basedparserdesignedtohandleonlythecontentsofdatafilestoconsiderthepresenceofasaveframeasanerror.

6.Adatablockbeginswiththereservedcase-insensitivestringdata_followedimmediatelybythenameofthedatablock,formingadatablockheader.Asaveframehasasimilarstructuretoadatablock,butmaynotitselfcontainfurthersaveframes.Asaveframebeginswiththereservedcase-insensitivestringsave_followedimmediatelybythenameofthesaveframe,formingasaveframeheader.Unlikeadatablock,asaveframealsohasamarkerfortheendoftheframeintheformofarepetitionofthereservedcase-insensitivewordsave_,thistimewithoutthenameoftheframe.Saveframesmaynotnest.WithinasingleCIF,notwodatablocksmayhavethesamename;withinasingledatablocknotwosaveframesmayhavethesamename,althoughasaveframemayhavethesamenameasadatablockinthesameCIF.

7.Agivendataname(tag)(see2.4and2.7)mayappearnomorethanonceinagivendatablockorsaveframe.Atagmaybefollowedbyasinglevalue,oralistofoneormoretagsmaybemarkedbytheprecedingreservedcase-insensitivewordloop_astheheadingsofthecolumnsofatableofvalues.Whitespaceisusedtoseparateadatablockorsaveframeheaderfromthecontentsofthedatablockorsaveframe,andtoseparatetags,valuesandthereservedwordloop_.Dataitems(tagsalongwiththeirassociatedvalues)thatarenotpresentedinatableofvaluesmayberelocatedalongwiththeirvalueswithinthesamedatablockorsaveframewithoutchangingthemeaningofthedatablockorsaveframe.Completetablesofvalues(thetablecolumnheadingsalongwithallcolumnsofdata)mayberelocatedwithinthesamedatablockorsaveframewithoutchangingthemeaningofthedatablockorsaveframe.Withinatableofvalues,eachtagmayberelocatedalongwithitsassociatedcolumnofvalueswithinthesametableofvalueswithoutchangingthemeaningofthetableofvalues.Ingeneraleachrowofatableofvaluesmayalsoberelocatedwithinthesametableofvalueswithoutchangingthemeaningofthetableofvalues.Combiningtablesofvaluesorbreakinguptablesofvalueswouldchangethemeanings,andislikelytoviolatetherulesforconstructingsuchtablesofvalues.

8.Thecase-insensitivewordglobal_,usedinSTARFilestointroduceagroupofdatavalueswithascopeextendingtotheendofthefile,isanadditionalreservedwordinCIF(thatis,itmaynotbeusedastheunquotedvalueofanydataitem).

9.Ifadatavalue(see2.5)containswhitespaceorbeginswithacharacterstringreservedforaspecialpurpose,itmustbedelimitedbyoneofseveralsetsofspecialcharacterstrings(thechoiceofwhichisconstrainedifthedatavaluecontainscharactersinterpretableasmarkinganewlineoftextaccordingtothediscussioninthefollowingparagraphs).Suchadatavaluewillbeindicatedbythetermnon-simpledatavalue.

10.Asimpledatavalue(i.e.onewhichdoesnotcontainwhitespaceorbeginwithaspecialcharacterstring)mayoptionallybedelimitedbyanyofthesamesetofdelimitingcharacterstrings,exceptfordatavaluesthataretobeinterpretedasnumbers.

11.Thespecialcharacterstringsinthiscontextarelistedinthefollowingtable.Theterm"non-simpledatavalues"inthistablereferstodatavaluesbeginningwiththesespecialcharacterstrings.

characterorstring

role

_(underscore)

identifiesdataname

#

identifiescomment

$

identifiessaveframepointer

'

delimitsnon-simpledatavalues

"

delimitsnon-simpledatavalues

[

reservedopeningdelimiterfornon-simpledatavalues(seeparagraph19)

]

reservedclosingdelimiterfornon-simpledatavalues(seeparagraph19)

;atbeginningoflineoftext

delimitsnon-simpledatavalues

data_

identifiesdatablockheader(case-insensitive)

save_

identifiessaveframeheaderorterminator(case-insensitive)

Inadditionthefollowingcase-insensitivereservedwordsmaynotoccurasunquoteddatavalues.

reservedword

role

loop_

identifiesloopedlistofdata

stop_

reservedSTARwordterminatingnestedloopsorloopheaders

global_

reservedasSTARglobalblockheader

12.ThecompletesyntacticdescriptionofanumericdatavalueisincludedinAppendixA(paragraph57)undertheproduction(i.e.ruleforconstructingapartofthelanguage).

13.ThebaseCIFspecificationdistinguishesbetweencharacterandnumericvalues(seeparagraph15ofthedocumentCommonsemanticfeatures).ParticularCIFapplicationsmaymakemorefinely-graineddistinctionswithinthesetypes.Theparagraphsimmediatelyabovehavethecorollarythatadatavaluesuchas12thatappearswithinaCIFmaybequoted(e.g.'12')if,andonlyifitistobeinterpretedandstoredincomputermemoryasacharacterstringandnotanumericvalue.Forexample'12'mightlegitimatelyappearasalabelforanatomicsite,whereanotheralphabeticoralphanumericstringsuchas'C12'isalsoacceptable;butitmaynotlegitimatelybeusedtorepresentanintegerquantitytwelve.

14.Matchingsingleordoublequotecharacters('or")maybeusedtoboundastringrepresentinganon-simpledatavalueprovidedthestringdoesnotextendovermorethanoneline.

15.Becausedatavaluesareinvariablyseparatedfromothertokensinthefilebywhitespace,suchaquote-delimitedcharacterstringmaycontaininstancesofthecharacterusedtodelimitthestringprovidedtheyarenotfollowedbywhitespace.Forexample,thedataitem

_example'adog'slife'

islegal;thedatavalueisadog'slife.

16.Notethatconstructssuchas'anembedded\'quote'donotbehaveasinthecaseofmanycurrentprogramminglanguages;i.e.thebackslashcharacterinthiscontextdoesnotescapethespecialmeaningofthedelimitercharacter.Abackslashprecedingtheapostropheordouble-quote

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > PPT模板 > 卡通动漫

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2