summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/cweb-latex/src/test/token.w
blob: 7765f1b9b37ea3cdffbc8be94c0b9419d96856e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% $Id: token.w,v 1.3 1995/08/29 15:21:08 schrod Exp $
%----------------------------------------------------------------------

% tests: rendering of tokens

\documentclass{cweb}

\begin{document}

@
@c
a = 100L;
a = 100UL;

@ shift operators:
@c
cout << "hello, world" << endl;
cin >> var;

@ formatting that depend on font sizes in Plain \texttt{CWEB}:
@f foo_bar int
@c
foo++; bar--;
foo_bar obj;
obj->method();


@
\end{document}