summary refs log tree commit diff
path: root/bin/man1/order.1
blob: 2eb730f16805433f9a9bc716e40e6a0038af3deb (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
.Dd May 15, 2019
.Dt ORDER 1
.Os
.
.Sh NAME
.Nm order
.Nd operator precedence
.
.Sh SYNOPSIS
.Nm
.Ar expr ...
.
.Sh DESCRIPTION
.Nm
parses C expressions
and prints them with parentheses
according to the precedence rules in
.Xr operator 7 .
.
.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
or the compound assignment operators.