namespace policy_backend_parser
|
Minimises global namespace pollution of yacc/lex variables.
More... |
|
|
Public Methods
Public Members
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:
outpolicies | the parse tree of all policies.
|
outsets | the pair of set-name / content.
|
conf | the configuration to parse.
|
outerr | string filled with parse error message, on error.
|
Returns: 0 on success. Otherwise, outerr is filled with error message.
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 Apr 13 21:53:13 2005, using kdoc $.