Queries on AST Objects

Two functions are provided which allow an application to determine if an AST was create as an expression or a suite. Neither of these functions can be used to determine if an AST was created from source code via expr() or suite() or from a parse tree via sequence2ast().


\begin{funcdesc}{isexpr}{ast}
When \code{\var{ast}} represents an \code{'eval'} ...
...tical to those created by the built-in
\code{compile()} function.
\end{funcdesc}


\begin{funcdesc}{issuite}{ast}
This function mirrors \code{isexpr()} in that it ...
...as additional syntactic fragments may
be supported in the future.
\end{funcdesc}