blob: 89fcbda5671a57a1ba7eabbec92f4bfee7d98c25 (
plain) (
blame)
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
30
31
32
33
34
35
36
37
38
|
.Dd July 18, 2020
.Dt ORDER 1
.Os
.
.Sh NAME
.Nm order
.Nd operator precedence
.
.Sh SYNOPSIS
.Nm
.Op Ar expr ...
.
.Sh DESCRIPTION
.Nm
parses C expressions
and prints them with parentheses
according to the precedence rules in
.Xr operator 7 .
If no
.Ar expr
are given,
an expression is read
from standard input.
.
.Sh EXAMPLES
.Bd -literal
$ order 'a & b << 1'
(a & (b << 1))
.Ed
.
.Sh SEE ALSO
.Xr operator 7
.
.Sh CAVEATS
.Nm
does not support the
.Sy (type)
operator.
|