- Timestamp:
- Jul 14, 2019, 7:33:59 AM (6 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user/user.tex
r8fd52e90 rc6dc7f2 11 11 %% Created On : Wed Apr 6 14:53:29 2016 12 12 %% Last Modified By : Peter A. Buhr 13 %% Last Modified On : Tue Jun 25 08:51:33201914 %% Update Count : 387 113 %% Last Modified On : Sat Jul 13 18:36:18 2019 14 %% Update Count : 3876 15 15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 16 … … 2697 2697 \subsection{Expressions} 2698 2698 2699 % Change order of expression evaluation. 2700 % http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0145r2.pdf 2701 2699 2702 Multiple-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. 2700 2703 These notions are generalized to provide \CFA with \newterm{tuple expression}s and \newterm{tuple type}s. … … 3506 3509 3507 3510 \item 3508 A separator does not appear before or after a null (empty) C string .3511 A separator does not appear before or after a null (empty) C string, which is a local mechanism to disable insertion of the separator character. 3509 3512 \begin{cfa} 3510 3513 sout | 1 | "" | 2 | "" | 3; 3511 3514 123 3512 3515 \end{cfa} 3513 which is a local mechanism to disable insertion of the separator character.3514 3516 3515 3517 \item 3516 3518 {\lstset{language=CFA,deletedelim=**[is][]{¢}{¢}} 3517 A sep erator does not appear before a C string starting with the (extended) \Index*{ASCII}\index{ASCII!extended} characters: \lstinline[basicstyle=\tt]@,.;!?)]}%¢»@3519 A 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. 3518 3520 \begin{cfa}[belowskip=0pt] 3519 3521 sout | 1 | ", x" | 2 | ". x" | 3 | "; x" | 4 | "! x" | 5 | "? x" | 6 | "% x" … … 3523 3525 1®,® x 2®.® x 3®;® x 4®!® x 5®?® x 6®%® x 7§\color{red}\textcent§ x 8®»® x 9®)® x 10®]® x 11®}® x 3524 3526 \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 3529 A 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. 3529 3530 %$ 3530 3531 \begin{cfa}[mathescape=off] … … 3537 3538 \end{cfa} 3538 3539 %$ 3539 where \lstinline[basicstyle=\tt]@¡¿@ are inverted opening exclamation and question marks, and \lstinline[basicstyle=\tt]@«@ is an opening citation mark.3540 3540 3541 3541 \item … … 3651 3651 The tuple separator also responses to being turned on and off. 3652 3652 \begin{cfa}[belowskip=0pt] 3653 sout | t1 | sepOff | t2; §\C{// locally turn on/off implicit separator}§3653 sout | t1 | sepOff | t2; §\C{// turn off implicit separator for the next item}§ 3654 3654 \end{cfa} 3655 3655 \begin{cfa}[showspaces=true,aboveskip=0pt,belowskip=0pt] … … 3675 3675 \subsection{Newline Manipulators} 3676 3676 3677 The following \Index{manipulator } controls\Index{newline separation} for input and output.3677 The following \Index{manipulators} control \Index{newline separation} for input and output. 3678 3678 3679 3679 For input: … … 3773 3773 3774 3774 \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©. 3776 Printing the base is the default. 3776 3777 \begin{cfa}[belowskip=0pt] 3777 3778 sout | nobase( bin( 27 ) ) | nobase( oct( 27 ) ) | nobase( hex( 27 ) );
Note: See TracChangeset
for help on using the changeset viewer.