Passa al contenuto principale

11. Sintassi di Datalanguage espressa in BNF

11.1 Richieste​

11.1.01  <request>  ::=  ;
11.1.02 <request> ::= <create>
11.1.03 <request> ::= OPEN <pn> ;
11.1.04 <request> ::= OPEN <pn> <mode> ;
11.1.05 <request> ::= CLOSE <ident> ;
11.1.06 <request> ::= CONNECT <ident> TO <address> ;
11.1.07 <request> ::= DISCONNECT <ident> ;
11.1.08 <request> ::= MODE <ident> <mode> ;
11.1.09 <request> ::= DELETE <pn> ;
11.1.10 <request> ::= LIST <listarg> ;
11.1.11 <request> ::= <sr-request> ;

11.2 Descrizione e creazione dei dati​

11.2.01  <create>  ::=  CREATE <pn>
11.2.02 <create> ::= CREATE <pn> <ftn> LIST <desc>
11.2.03 <create> ::= CREATE <pn> <ftn> LIST <size> <desc>

11.2.04 <desc> ::= <ident> <attributes>

11.2.05 <attributes> ::= LIST <size> <desc>
11.2.06 <attributes> ::= STRUCT <descs> END
11.2.07 <attributes> ::= STR <size>
11.2.08 <attributes> ::= STR <size> ,I=D

11.2.09 <descs> ::= <desc>
11.2.10 <descs> ::= <descs> <desc>

11.2.11 <ftn> ::= PORT
11.2.12 <ftn> ::= FILE
11.2.13 <ftn> ::= TEMP PORT
11.2.14 <ftn> ::= TEMPORARY PORT

11.2.15 <size> ::= ( <integer constant> )

11.3 Memorizzazione ed estrazione dei dati​

11.3.01  <sr-request>  ::=  <assign>
11.3.01 <sr-request> ::= <loop>

11.3.03 <assign> ::= <pn> = <object>

11.3.04 <loop> ::= FOR <looparg> <loopbody> END

11.3.05 <looparg> ::= <exp>
11.3.06 <looparg> ::= <pn> , <exp>

11.3.07 <loopbody> ::= <sr-request>
11.3.08 <loopbody> ::= <loopbody1> <sr-request>
11.3.09 <loopbody> ::= <loopbody1>

11.3.10 <loopbody1> ::= <sr-request> ;
11.3.11 <loopbody1> ::= <loopbody1> <sr-request> ;

11.4 Espressioni​

11.4.01  <exp>  ::=  <pn>
11.4.02 <exp> ::= <pn> WITH <boolexp>

11.4.03 <boolexp> ::= <pn> <comop> <string constant>
11.4.04 <boolexp> ::= ( <boolexp> )
11.4.05 <boolexp> ::= NOT <boolexp>
11.4.06 <boolexp> ::= <boolexp> AND <boolexp>
11.4.07 <boolexp> ::= <boolexp> OR <boolexp>

11.4.08 <comop> ::= EQ
11.4.09 <comop> ::= NE
11.4.10 <comop> ::= GT
11.4.11 <comop> ::= LT
11.4.12 <comop> ::= GE
11.4.13 <comop> ::= LE

11.5 Varie​

11.5.01  <address>  ::=  <quote> <TENEX file designator>
<quote>
11.5.02 <address> ::= <socket> AT <host>
11.5.03 <address> ::= <socket>

11.5.04 <socket> ::= <integer constant> //INTERPRETED AS
DECIMAL

11.5.05 <host> ::= <integer constant> //INTERPRETED AS
DECIMAL
11.5.06 <host> ::= ***** TENEX host names *****

11.5.07 <object> ::= <pn>
11.5.08 <object> ::= <string constant>

11.5.09 <mode> ::= READ
11.5.10 <mode> ::= APPEND
11.5.11 <mode> ::= WRITE

11.5.12 <listarg> ::= %ALL
11.5.13 <listarg> ::= <pn>.%ALL
11.5.14 <listarg> ::= %OPEN
11.5.15 <listarg> ::= %ALL.%SOURCE
11.5.16 [<LISTARG>] ::= <IDENT>.%SOURCE
11.5.17 <listarg> ::= %OPEN.%SOURCE
11.5.18 <listarg> ::= %OPEN.%DESC
11.5.19 <listarg> ::= <ident>.%DESC

11.5.20 <pn> ::= <ident>
11.5.21 <pn> ::= <pn>.<ident>

11.5.22 <ident> ::= <letter>
11.5.23 <ident> ::= <ident> <letter>
11.5.24 <ident> ::= <ident> <digit>

11.5.25 <integer constant> ::= <digit>
11.5.26 <integer constant> ::= <integer constant> <digit>

11.5.27 <string constant> ::= <quote> <string conbody>
<quote>

11.5.28 <string conbody> ::= <nonquote>
11.5.28 <string conbody> ::= <string conbody> <nonquote>

11.6 Set di caratteri​

11.6.01  <separator>  ::=   //SPACE(32)
11.6.02  <separator>  ::=   //TAB(9)
11.6.03  <separator>  ::=  <eol>

11.6.04  <special>  ::=  <quote>
11.6.05  <special>  ::=  <superquote>
11.6.06  <special>  ::=  <special1>

11.6.07  <letter>  ::=  A
11.6.08  <letter>  ::=  B
 ...............
11.6.09  <letter>  ::=  Z

11.6.10  <letter>  ::=  a
11.6.11  <letter>  ::=  b
 ...............
11.6.12  <letter>  ::=  z

11.6.13  <digit>  ::=  0
11.6.14  <digit>  ::=  1
 ...............
11.6.15  <digit>  ::=  9

11.6.16  <nonquote>  ::=  <letter>
11.6.17  <nonquote>  ::=  <digit>
11.6.18  <nonquote>  ::=  <superquote> <quote>
11.6.19  <nonquote>  ::=  <superquote> <superquote>
11.6.20  <nonquote>  ::=  <special1>
11.6.21  <nonquote>  ::=  <separator>

11.6.22  <eol>  ::=  //EOL (31)
11.6.23  <eol>  ::=  <carriage return> <line feed>

11.6.24  <carriage return>  ::=  //CARRIAGE RETURN (13)
11.6.25  <line feed>  ::=  //LINE FEED (10)

11.6.26  <quote>  ::=  ' //SINGLE QUOTE(44)

11.6.27  <superquote>  ::=  " //DOUBLE QUOTE(34)

11.6.28  <special1>  ::=  ! //EXCLAMATION POINT(33)
11.6.29  <special1>  ::=  # //NUMBER SIGN(35)
11.6.30  <special1>  ::=  $ //DOLLAR SIGN(36)
11.6.31  <special1>  ::=  % //PERCENT SIGN(37)
11.6.32  <special1>  ::=  & //AMPERSAND(38)
11.6.33  <special1>  ::=  ( //LEFT PARENTHESIS(40)
11.6.34  <special1>  ::=  ) //RIGHT PARENTHESIS(41)
11.6.35  <special1>  ::=  * //ASTERISK(42)
11.6.36  <special1>  ::=  + //PLUS SIGN(43)
11.6.37  <special1>  ::=  , //COMMA(44)
11.6.38  <special1>  ::=  - //MINUS SIGN(45)
11.6.39  <special1>  ::=  . //PERIOD(46)
11.6.40  <special1>  ::=  / //SLASH(47)
11.6.41  <special1>  ::=  : //COLON(58)
11.6.42  <special1>  ::=  ; //SEMICOLON(59)
11.6.43  <special1>  ::=  < //LEFT ANGLE BRACKET(60)
11.6.44  <special1>  ::=  = //EQUAL SIGN(61)
11.6.45  <special1>  ::=  > //RIGHT ANGLE BRACKET(62)
11.6.46  <special1>  ::=  ? //QUESTION MARK(63)
11.6.47  <special1>  ::=  @ //AT-SIGN(64)
11.6.48  <special1>  ::=  [ //LEFT SQUARE BRACKET(91)
11.6.49  <special1>  ::=   //BACK SLASH(92)
11.6.50  <special1>  ::=  ] //RIGHT SQUARE BRACKET(93)
11.6.51  <special1>  ::=  ^ //CIRCUMFLEX(94)
11.6.52  <special1>  ::=  _ //UNDERBAR(95)
11.6.53  <special1>  ::=  ` //ACCENT GRAVE(96)
11.6.54  <special1>  ::=  { //LEFT BRACE(123)
11.6.55  <special1>  ::=  | //VERTICAL BAR(124)
11.6.56  <special1>  ::=  } //RIGHT BRACE(125)
11.6.57  <special1>  ::=  ~ //TILDE(126)

<EOF>

[ Questa RFC è stata messa in forma leggibile da macchina per l'inserimento negli archivi RFC online da Walter Benton nel dicembre 1998. ]