\hypertarget{namespacepolicy__parser}{
\section{policy\_\-parser Namespace Reference}
\label{namespacepolicy__parser}\index{policy\_\-parser@{policy\_\-parser}}
}


Minimises global namespace pollution of yacc/lex variables.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{namespacepolicy__parser_a0e0dd6726e631cfdb8831b545dcf136a}{policy\_\-parse} (vector$<$ \hyperlink{classNode}{Node} $\ast$ $>$ \&outnodes, const Term::BLOCKS \&block, const string \&conf, string \&outerr)
\begin{DoxyCompactList}\small\item\em \hyperlink{classParser}{Parser} a policy. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{namespacepolicy__parser_a012be36d3a280afa7fc95527e552ff7e}{
vector$<$ \hyperlink{classNode}{Node} $\ast$ $>$ $\ast$ {\bfseries \_\-parser\_\-nodes}}
\label{namespacepolicy__parser_a012be36d3a280afa7fc95527e552ff7e}

\item 
\hypertarget{namespacepolicy__parser_a50f73226db62019779538be31b559ea6}{
unsigned {\bfseries \_\-parser\_\-lineno}}
\label{namespacepolicy__parser_a50f73226db62019779538be31b559ea6}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Minimises global namespace pollution of yacc/lex variables. The nature of lex and yacc causes global variables / functions to be present. Here such methods and functions are grouped under one namespace. 

\subsection{Function Documentation}
\hypertarget{namespacepolicy__parser_a0e0dd6726e631cfdb8831b545dcf136a}{
\index{policy\_\-parser@{policy\_\-parser}!policy\_\-parse@{policy\_\-parse}}
\index{policy\_\-parse@{policy\_\-parse}!policy_parser@{policy\_\-parser}}
\subsubsection[{policy\_\-parse}]{\setlength{\rightskip}{0pt plus 5cm}int policy\_\-parser::policy\_\-parse (
\begin{DoxyParamCaption}
\item[{vector$<$ {\bf Node} $\ast$ $>$ \&}]{outnodes, }
\item[{const Term::BLOCKS \&}]{block, }
\item[{const string \&}]{conf, }
\item[{string \&}]{outerr}
\end{DoxyParamCaption}
)}}
\label{namespacepolicy__parser_a0e0dd6726e631cfdb8831b545dcf136a}


\hyperlink{classParser}{Parser} a policy. 

Caller is responsible for deleting nodes created from a partial parse due to errors.

\begin{DoxyReturn}{Returns}
0 on success. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em outnodes} & where parse tree will be stored. \\
\hline
{\em block} & \hyperlink{protocolthe-p}{the} policy block \mbox{[}source, action, dest\mbox{]} which is being parsed. \\
\hline
{\em conf} & configuration to parse. \\
\hline
{\em outerr} & on error, this buffer will be filled with an error message. \\
\hline
\end{DoxyParams}
