summary refs log tree commit diff
path: root/bin/man1/order.1
diff options
context:
space:
mode:
Diffstat (limited to 'bin/man1/order.1')
-rw-r--r--bin/man1/order.134
1 files changed, 34 insertions, 0 deletions
diff --git a/bin/man1/order.1 b/bin/man1/order.1
new file mode 100644
index 00000000..696a24d1
--- /dev/null
+++ b/bin/man1/order.1
@@ -0,0 +1,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) ,
+.Sy sizeof
+or assignment operators.