% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interpret_unit_test.R
\name{needs_parens}
\alias{needs_parens}
\title{Determine whether parentheses are needed to preserve meaning}
\usage{
needs_parens(inner_op, outer_op)
}
\arguments{
\item{inner_op}{The operator inside the parentheses (or NULL)}

\item{outer_op}{The operator outside (parent context, or NULL)}
}
\value{
logical
}
\description{
Parentheses are needed when the inner operator has lower precedence
than the parent, because without them the human reader might
misinterpret the grouping.
}
\keyword{internal}
