\hypertarget{classastparser_1_1_ast_parser}{}\doxysection{astparser\+::Ast\+Parser Class Reference} \label{classastparser_1_1_ast_parser}\index{astparser::AstParser@{astparser::AstParser}} \mbox{\hyperlink{classastparser_1_1_ast_parser}{Ast\+Parser}} class. \doxysubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item \mbox{\Hypertarget{classastparser_1_1_ast_parser_ac11f81f26169c8c581431f1b8e0ce72b}\label{classastparser_1_1_ast_parser_ac11f81f26169c8c581431f1b8e0ce72b}} \mbox{\hyperlink{classastparser_1_1_ast_parser_ac11f81f26169c8c581431f1b8e0ce72b}{constructor}} () \begin{DoxyCompactList}\small\item\em Creates the \mbox{\hyperlink{classastparser_1_1_ast_parser}{Ast\+Parser}}. \end{DoxyCompactList}\item \+\_\+\+\_\+7\+\_\+ list \mbox{\hyperlink{classastparser_1_1_ast_parser_aa034e0c36466141d8a2e7e6ad71bbca3}{get\+Diagnostics}} () \begin{DoxyCompactList}\small\item\em Get diagnostics. \end{DoxyCompactList}\item int \mbox{\hyperlink{classastparser_1_1_ast_parser_aa5684b3d2e28a0b68c81f98fbd6e63f8}{get\+Error\+Count}} () \begin{DoxyCompactList}\small\item\em Get parse error count. \end{DoxyCompactList}\item \+\_\+\+\_\+7\+\_\+ \mbox{\hyperlink{classastparser_1_1_ast_tree}{Ast\+Tree}} \mbox{\hyperlink{classastparser_1_1_ast_parser_a75f87403b37b032ae664ea5a458ef506}{parse\+File}} (string filename) \begin{DoxyCompactList}\small\item\em Parse file. \end{DoxyCompactList}\item \+\_\+\+\_\+7\+\_\+ \mbox{\hyperlink{classastparser_1_1_ast_tree}{Ast\+Tree}} \mbox{\hyperlink{classastparser_1_1_ast_parser_a2d23d0ec2297b2dec0ebdf3039695f4f}{parse\+String}} (string str) \begin{DoxyCompactList}\small\item\em Parse string. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection{Detailed Description} \mbox{\hyperlink{classastparser_1_1_ast_parser}{Ast\+Parser}} class. \mbox{\hyperlink{classastparser_1_1_ast_parser}{Ast\+Parser}} is used for parsing an A\+ST tree of a \mbox{\hyperlink{namespace_qore}{Qore}} source file. \begin{DoxySince}{Since} Qore 0.\+8.\+13 \end{DoxySince} \doxysubsection{Member Function Documentation} \mbox{\Hypertarget{classastparser_1_1_ast_parser_aa034e0c36466141d8a2e7e6ad71bbca3}\label{classastparser_1_1_ast_parser_aa034e0c36466141d8a2e7e6ad71bbca3}} \index{astparser::AstParser@{astparser::AstParser}!getDiagnostics@{getDiagnostics}} \index{getDiagnostics@{getDiagnostics}!astparser::AstParser@{astparser::AstParser}} \doxysubsubsection{\texorpdfstring{getDiagnostics()}{getDiagnostics()}} {\footnotesize\ttfamily \+\_\+\+\_\+7\+\_\+ list astparser\+::\+Ast\+Parser\+::get\+Diagnostics (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} Get diagnostics. \begin{DoxyReturn}{Returns} list of diagnostic hashes \end{DoxyReturn} \mbox{\Hypertarget{classastparser_1_1_ast_parser_aa5684b3d2e28a0b68c81f98fbd6e63f8}\label{classastparser_1_1_ast_parser_aa5684b3d2e28a0b68c81f98fbd6e63f8}} \index{astparser::AstParser@{astparser::AstParser}!getErrorCount@{getErrorCount}} \index{getErrorCount@{getErrorCount}!astparser::AstParser@{astparser::AstParser}} \doxysubsubsection{\texorpdfstring{getErrorCount()}{getErrorCount()}} {\footnotesize\ttfamily int astparser\+::\+Ast\+Parser\+::get\+Error\+Count (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} Get parse error count. \begin{DoxyReturn}{Returns} error count \end{DoxyReturn} \mbox{\Hypertarget{classastparser_1_1_ast_parser_a75f87403b37b032ae664ea5a458ef506}\label{classastparser_1_1_ast_parser_a75f87403b37b032ae664ea5a458ef506}} \index{astparser::AstParser@{astparser::AstParser}!parseFile@{parseFile}} \index{parseFile@{parseFile}!astparser::AstParser@{astparser::AstParser}} \doxysubsubsection{\texorpdfstring{parseFile()}{parseFile()}} {\footnotesize\ttfamily \+\_\+\+\_\+7\+\_\+ \mbox{\hyperlink{classastparser_1_1_ast_tree}{Ast\+Tree}} astparser\+::\+Ast\+Parser\+::parse\+File (\begin{DoxyParamCaption}\item[{string}]{filename }\end{DoxyParamCaption})} Parse file. \begin{DoxyParams}{Parameters} {\em filename} & file\textquotesingle{}s name including path \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} parsed A\+ST tree \end{DoxyReturn} \mbox{\Hypertarget{classastparser_1_1_ast_parser_a2d23d0ec2297b2dec0ebdf3039695f4f}\label{classastparser_1_1_ast_parser_a2d23d0ec2297b2dec0ebdf3039695f4f}} \index{astparser::AstParser@{astparser::AstParser}!parseString@{parseString}} \index{parseString@{parseString}!astparser::AstParser@{astparser::AstParser}} \doxysubsubsection{\texorpdfstring{parseString()}{parseString()}} {\footnotesize\ttfamily \+\_\+\+\_\+7\+\_\+ \mbox{\hyperlink{classastparser_1_1_ast_tree}{Ast\+Tree}} astparser\+::\+Ast\+Parser\+::parse\+String (\begin{DoxyParamCaption}\item[{string}]{str }\end{DoxyParamCaption})} Parse string. \begin{DoxyParams}{Parameters} {\em str} & string with code \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} parsed A\+ST tree \end{DoxyReturn}