\doxysection{Qore\+::Expression Class Reference}
\hypertarget{class_qore_1_1_expression}{}\label{class_qore_1_1_expression}\index{Qore::Expression@{Qore::Expression}}


\doxylink{class_qore_1_1_expression}{Expression} objects represent a single executable expression.  




{\ttfamily \#include $<$QC\+\_\+\+Expression.\+dox.\+h$>$}

\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_qore_1_1_expression_af8f6fb07b8498784c8a3fb8e49452f84}{constructor}} (\mbox{\hyperlink{class_qore_1_1_program}{Program}} \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{pgm}}, \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} source, \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{label}})
\begin{DoxyCompactList}\small\item\em Creates the expression object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{auto}} \mbox{\hyperlink{class_qore_1_1_expression_a21e8890dbaf5797c13a2235ddce254c2}{eval}} ()
\begin{DoxyCompactList}\small\item\em Evaluates the expression and returns any return value. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\doxylink{class_qore_1_1_expression}{Expression} objects represent a single executable expression. 

\begin{DoxySince}{Since}
\doxylink{namespace_qore}{Qore} 0.\+9.\+5 
\end{DoxySince}


\doxysubsection{Member Function Documentation}
\Hypertarget{class_qore_1_1_expression_af8f6fb07b8498784c8a3fb8e49452f84}\label{class_qore_1_1_expression_af8f6fb07b8498784c8a3fb8e49452f84} 
\index{Qore::Expression@{Qore::Expression}!constructor@{constructor}}
\index{constructor@{constructor}!Qore::Expression@{Qore::Expression}}
\doxysubsubsection{\texorpdfstring{constructor()}{constructor()}}
{\footnotesize\ttfamily Qore\+::\+Expression\+::constructor (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_qore_1_1_program}{Program}}}]{pgm,  }\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{source,  }\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{label }\end{DoxyParamCaption})}



Creates the expression object. 


\begin{DoxyParams}{Parameters}
{\em pgm} & The \doxylink{class_qore_1_1_program}{Program} object where the expression will be created \\
\hline
{\em source} & The source to the expression \\
\hline
{\em label} & the label for the expression \\
\hline
\end{DoxyParams}
\Hypertarget{class_qore_1_1_expression_a21e8890dbaf5797c13a2235ddce254c2}\label{class_qore_1_1_expression_a21e8890dbaf5797c13a2235ddce254c2} 
\index{Qore::Expression@{Qore::Expression}!eval@{eval}}
\index{eval@{eval}!Qore::Expression@{Qore::Expression}}
\doxysubsubsection{\texorpdfstring{eval()}{eval()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{auto}} Qore\+::\+Expression\+::eval (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Evaluates the expression and returns any return value. 

\begin{DoxyReturn}{Returns}
The return value of the expression after evaluation 
\end{DoxyReturn}
