summary refs log tree commit diff
path: root/bin/man1/order.1
blob: 8e0f9661b6542bd3aaa851a16a387452770225ac (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,
each line of standard input
is parsed and printed.
.
.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.