xref: /openbsd/regress/usr.bin/mandoc/roff/esc/B.in (revision d89ec533)
1.\" $OpenBSD: B.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $
2.Dd $Mdocdate: July 4 2017 $
3.Dt ESC-B 1
4.Os
5.Sh NAME
6.Nm esc-B
7.Nd the roff escape B sequence: validate numerical expression
8.Sh DESCRIPTION
9empty: \B''
10.br
11digit: \B'0'
12.br
13no number: \B'no number'
14.br
15trailing garbage: \B'1X'
16.br
17trailing operator: \B'1+'
18.br
19infix operator: \B'1+1'
20.br
21infix and trailing operator: \B'1+1+'
22.br
23chain of operations: \B'1+2+3+4'
24.br
25trailing para: \B'1+('
26.br
27unclosed para: \B'(1'
28.br
29empty pair of parentheses: \B'()'
30.br
31parentheses containing number: \B'(42)'
32.br
33complex expression: \B'3+(3*(5==5*2)*4)+(3*5)/2'
34.br
35other delimiter: \Bx1+1x
36.br
37no closing delimiter: \B'1+1
38