From 0678af6fe92d76183144ca378672a62b2a955465 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 15 May 2019 19:33:38 -0400 Subject: Add order --- bin/man1/order.1 | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 bin/man1/order.1 (limited to 'bin/man1') 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. -- cgit 1.4.1