namespace policy_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_parse (vector<Node*>& outnodes, const Term::BLOCKS& block, const string& conf, string& outerr)

policy_parse

Parser a policy.

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

Parameters:

outnodeswhere parse tree will be stored.
blockthe policy block [source, action, dest] which is being parsed.
confconfiguration to parse.
outerron error, this buffer will be filled with an error message.

Returns: 0 on success.

extern vector<Node*>* _parser_nodes

_parser_nodes

extern unsigned _parser_lineno

_parser_lineno


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:59 2008, using kdoc 2.0a54+XORP.