Nested Array-like environment without Math-region
\documentclass{article}
\newcommand{\textarray}[1]{\ensuremath{\left[ \mbox{\ttfamily\begin{tabular}{l} #1 \end{tabular}}\right]}}
\begin{document}
\textarray{
\textarray{Note that \\ all text \\ is verbatim} $\rightarrow$ not vertical centering \\[4ex]
\textarray{Lorem ipsum \\ dolor sit amet, consectetur}
}
\end{document}
\documentclass{article}
\usepackage{verbatimbox,stackengine}
\setstackEOL{\\}
\begin{document}
\begin{myverbbox}{\UpLeft}
Note that
all text
is verbatim
\end{myverbbox}
\begin{myverbbox}{\UpRight}
note vertical centering
\end{myverbbox}
\begin{myverbbox}{\LowLeft}
Lorem ipsum
dolor sit amet, consecetur
\end{myverbbox}
\begin{myverbbox}{\LowRight}
Note that
nested hierarchy
can be
quite complex
\end{myverbbox}
\savestack\TopRow{$\bracketVectorstack{\UpLeft} \rightarrow \UpRight$}
\savestack\BottomRow{$\bracketVectorstack{\LowLeft} \rightarrow \bracketVectorstack{\LowRight}$}
\[
\renewcommand\stackalignment{l}
\left[
\stackanchor[8pt]{\TopRow}{\BottomRow}
\right]
\]
\end{document}
If I spend the time to clean up the spacings, and align at the arrows:
\documentclass{article}
\usepackage{verbatimbox,tabstackengine}
\TABstackMath
\begin{document}
\begin{myverbbox}{\UpLeft}
Note that
all text
is verbatim
\end{myverbbox}
\begin{myverbbox}{\UpRight}
note vertical centering
\end{myverbbox}
\begin{myverbbox}{\LowLeft}
Lorem ipsum \#@%$^&
dolor sit amet, consecetur
\end{myverbbox}
\begin{myverbbox}{\LowRight}
Note that
nested hierarchy
can be
quite complex
\end{myverbbox}
\savestack\TopRow{$\bracketVectorstack{\UpLeft}
\rightarrow \UpRight$}
\savestack\BottomRow{$\bracketVectorstack{\LowLeft}
\rightarrow \bracketVectorstack{\addstackgap{\LowRight}}$}
\[
\renewcommand\stackalignment{l}
\left[
\raisebox{6pt}{\tabbedstackanchor[8pt]{\bracketVectorstack{\UpLeft}
&\rightarrow \UpRight}{\bracketVectorstack{\LowLeft}
&\rightarrow \bracketVectorstack{\addstackgap{\LowRight}}}}
\right]
\]
\end{document}