Creating AST Objects

AST objects may be created from source code or from a parse tree. When creating an AST object from source, different functions are used to create the 'eval' and 'exec' forms.


\begin{funcdesc}{expr}{string}
The \code{expr()} function parses the parameter \...
...ree representation, otherwise an appropriate exception is
thrown.
\end{funcdesc}


\begin{funcdesc}{suite}{string}
The \code{suite()} function parses the parameter...
...ree representation, otherwise an appropriate exception is
thrown.
\end{funcdesc}


\begin{funcdesc}{sequence2ast}{sequence}
This function accepts a parse tree repr...
...ecified for any subset of the terminal symbols in the input
tree.
\end{funcdesc}


\begin{funcdesc}{tuple2ast}{sequence}
This is the same function as \code{sequence2ast()}. This entry point
is maintained for backward compatibility.
\end{funcdesc}