namespace policy_backend_parser

Minimises global namespace pollution of yacc/lex variables. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Members


Detailed Description

The nature of lex and yacc causes global variables / functions to be present. Here such methods and functions are grouped under one namespace.

int  policy_backend_parse (vector<PolicyInstr*>& outpolicies, map<string,Element*>& outsets, const string& conf, string& outerr)

policy_backend_parse

Parses a backend policy configuration.

Caller is responsible for deleting partially parsed policies and sets.

Parameters:

outpoliciesthe parse tree of all policies.
outsetsthe pair of set-name / content.
confthe configuration to parse.
outerrstring filled with parse error message, on error.

Returns: 0 on success. Otherwise, outerr is filled with error message.

extern vector<PolicyInstr*>* _yy_policies

_yy_policies

extern map<string,Element*>* _yy_sets

_yy_sets

extern vector<TermInstr*>* _yy_terms

_yy_terms

extern vector<Instruction*>* _yy_instructions

_yy_instructions


Generated by: pavlin on possum.icir.org on Wed Aug 2 15:36:29 2006, using kdoc $.