summary refs log tree commit diff
path: root/bin/man1/order.1
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.
DQ string inside SQ stringJune McEnroe 2019-02-10Skip only one character if a match fails due to parentJune McEnroe Really it should skip forward until the parent changes, but this is simpler. 2019-02-10Remove pattend from hiJune McEnroe 2019-02-10Replace uses of pattend with newline patternsJune McEnroe 2019-02-10Add hi debug outputJune McEnroe 2019-02-10Actually do HTML &quot; escapingJune McEnroe 2019-02-10Set git commit.verboseJune McEnroe 2019-02-10Add back missing static keywordJune McEnroe