class Parser

A lex/yacc wrapper which parses a configuration and returns nodes. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

This class parses a raw user configuration and returns a vector of nodes.

Each node will normally relate to a single statement. The vector of nodes reflects all the statements present.

typedef vector<Node*> Nodes

Nodes

Nodes*  parse (const Term::BLOCKS& block, const string& text)

parse

Parameters:

blockthe term block which is being parsed [action/src/dest].
textConfiguration to parse.

Returns: the parse-tree of the configuration. Null on error.

string  last_error ()

last_error

This should be called if parse returns null.

If parse is successful, the value of last_error is undefined.

Returns: the last error of the parse.


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