namespace policy_backend_parser
|
Minimises global namespace pollution of yacc/lex variables.
More... |
|
|
Public Types
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,
SUBR& outsubr,
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 |
extern bool _yy_trace
| _yy_trace |
extern SUBR* _yy_subr
| _yy_subr |
Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:01 2009, using kdoc 2.0a54+XORP.