Changeset c6dc7f2 for doc/user


Ignore:
Timestamp:
Jul 14, 2019, 7:33:59 AM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
757ffed
Parents:
8fd52e90
Message:

formatting changes to I/O documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/user/user.tex

    r8fd52e90 rc6dc7f2  
    1111%% Created On       : Wed Apr  6 14:53:29 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Tue Jun 25 08:51:33 2019
    14 %% Update Count     : 3871
     13%% Last Modified On : Sat Jul 13 18:36:18 2019
     14%% Update Count     : 3876
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    26972697\subsection{Expressions}
    26982698
     2699% Change order of expression evaluation.
     2700% http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0145r2.pdf
     2701
    26992702Multiple-return-value functions provide \CFA with a new syntax for expressing a combination of expressions in the return statement and a combination of types in a function signature.
    27002703These notions are generalized to provide \CFA with \newterm{tuple expression}s and \newterm{tuple type}s.
     
    35063509
    35073510\item
    3508 A separator does not appear before or after a null (empty) C string.
     3511A separator does not appear before or after a null (empty) C string, which is a local mechanism to disable insertion of the separator character.
    35093512\begin{cfa}
    35103513sout | 1 | "" | 2 | "" | 3;
    35113514123
    35123515\end{cfa}
    3513 which is a local mechanism to disable insertion of the separator character.
    35143516
    35153517\item
    35163518{\lstset{language=CFA,deletedelim=**[is][]{¢}{¢}}
    3517 A seperator does not appear before a C string starting with the (extended) \Index*{ASCII}\index{ASCII!extended} characters: \lstinline[basicstyle=\tt]@,.;!?)]}%¢»@
     3519A separator does not appear before a C string starting with the (extended) \Index*{ASCII}\index{ASCII!extended} characters: \lstinline[basicstyle=\tt]@,.;!?)]}%¢»@, where \lstinline[basicstyle=\tt]@»@ is a closing citation mark.
    35183520\begin{cfa}[belowskip=0pt]
    35193521sout | 1 | ", x" | 2 | ". x" | 3 | "; x" | 4 | "! x" | 5 | "? x" | 6 | "% x"
     
    352335251®,® x 2®.® x 3®;® x 4®!® x 5®?® x 6®%® x 7§\color{red}\textcent§ x 8®»® x 9®)® x 10®]® x 11®}® x
    35243526\end{cfa}}%
    3525 where \lstinline[basicstyle=\tt]@»@ is a closing citation mark.
    3526 
    3527 \item
    3528 A separator does not appear after a C string ending with the (extended) \Index*{ASCII}\index{ASCII!extended} characters: \lstinline[mathescape=off,basicstyle=\tt]@([{=$£¥¡¿«@
     3527
     3528\item
     3529A separator does not appear after a C string ending with the (extended) \Index*{ASCII}\index{ASCII!extended} characters: \lstinline[mathescape=off,basicstyle=\tt]@([{=$£¥¡¿«@, where \lstinline[basicstyle=\tt]@¡¿@ are inverted opening exclamation and question marks, and \lstinline[basicstyle=\tt]@«@ is an opening citation mark.
    35293530%$
    35303531\begin{cfa}[mathescape=off]
     
    35373538\end{cfa}
    35383539%$
    3539 where \lstinline[basicstyle=\tt]@¡¿@ are inverted opening exclamation and question marks, and \lstinline[basicstyle=\tt]@«@ is an opening citation mark.
    35403540
    35413541\item
     
    36513651The tuple separator also responses to being turned on and off.
    36523652\begin{cfa}[belowskip=0pt]
    3653 sout | t1 | sepOff | t2; §\C{// locally turn on/off implicit separator
     3653sout | t1 | sepOff | t2; §\C{// turn off implicit separator for the next item
    36543654\end{cfa}
    36553655\begin{cfa}[showspaces=true,aboveskip=0pt,belowskip=0pt]
     
    36753675\subsection{Newline Manipulators}
    36763676
    3677 The following \Index{manipulator} controls \Index{newline separation} for input and output.
     3677The following \Index{manipulators} control \Index{newline separation} for input and output.
    36783678
    36793679For input:
     
    37733773
    37743774\item
    3775 \Indexc{nobase}( integer )\index{manipulator!nobase@©nobase©} do not precede ©bin©, ©oct©, ©hex© with ©0b©/©0B©, ©0©, or ©0x©/©0X©. Printing the base is the default.
     3775\Indexc{nobase}( integer )\index{manipulator!nobase@©nobase©} do not precede ©bin©, ©oct©, ©hex© with ©0b©/©0B©, ©0©, or ©0x©/©0X©.
     3776Printing the base is the default.
    37763777\begin{cfa}[belowskip=0pt]
    37773778sout | nobase( bin( 27 ) ) | nobase( oct( 27 ) ) | nobase( hex( 27 ) );
Note: See TracChangeset for help on using the changeset viewer.