summary refs log tree commit diff
path: root/bin/man1
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-05-15 19:33:38 -0400
committerJune McEnroe <june@causal.agency>2019-05-15 19:33:38 -0400
commitcdf925f29e53eba20bc47af161fb6aec3b7c465d (patch)
tree49c47c8737f43b1c0e9b32843c37098342229a9d /bin/man1
parentAdd T suffix in bit (diff)
downloadsrc-cdf925f29e53eba20bc47af161fb6aec3b7c465d.tar.gz
src-cdf925f29e53eba20bc47af161fb6aec3b7c465d.zip
Add order
Diffstat (limited to 'bin/man1')
-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.