]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/nr/eval.in
Two new low-level roff(7) features:
[mandoc.git] / regress / roff / nr / eval.in
1 .\" $OpenBSD: eval.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $
2 .TH NR-EVAL 1 "April 7, 2014"
3 .SH NAME
4 nr-eval \- numeric expressions in assignments to number registers
5 .SH DESCRIPTION
6 .nr mr 1
7 1: \n(mr
8 .br
9 .nr mr nonumber
10 nonumber: \n(mr
11 .br
12 .nr mr 3X
13 3X: \n(mr
14 .br
15 .nr mr 4+
16 4+: \n(mr
17 .br
18 .nr mr 2+3
19 2+3: \n(mr
20 .br
21 .nr mr 1+1:
22 1+1:: \n(mr
23 .br
24 .nr mr 10-3
25 10-3: \n(mr
26 .br
27 .nr mr 4*2
28 4*2: \n(mr
29 .br
30 .nr mr 27/3
31 27/3: \n(mr
32 .br
33 .nr mr 58%16
34 58%16: \n(mr
35 .br
36 .nr mr 11<?20
37 11<?20: \n(mr
38 .br
39 .nr mr 30<?12
40 30<?12: \n(mr
41 .br
42 .nr mr 7>?13
43 7>?13: \n(mr
44 .br
45 .nr mr 14>?6
46 14>?6: \n(mr
47 .br
48 .nr mr 2+3*3
49 2+3*3: \n(mr
50 .br
51 .nr mr 16+(
52 para at eol: \n(mr
53 .br
54 .nr mr (17
55 unclosed para: \n(mr
56 .br
57 .nr mr (18)
58 (18): \n(mr
59 .br
60 .nr mr ( 25 - 6 )
61 ( 25 - 6 ): \n(mr
62 .br
63 .nr mr 11+( 3*3 )
64 11+( 3*3 ): \n(mr
65 .br
66 .nr mr 3+(3*(5==5*2)*4)+(3*5)/2
67 3+(3*(5==5*2)*4)+(3*5)/2: \n(mr
68 .br