VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
VICI::EBNF::EBNF Class Referenceabstract

A parser for EBNF. More...

#include <vici/vici.h>

Inheritance diagram for VICI::EBNF::EBNF:
VICI::stub::EBNF_Stub

Public Member Functions

virtual ~EBNF ()
 virtual destructor
 
virtual bool validate (csr s)=0
 confirm that an EBNF is valid More...
 
virtual void getError (int &line, int &column, std::string &text)=0
 get location and details of parsing error More...
 
virtual ParseTreeparse (csr s)=0
 parse the EBNF More...
 

Detailed Description

A parser for EBNF.

The definition of the facade for libebnf.

The implementation will be responsible for parsing some EBNF text to create a parse tree for use by libsyntax and libcommand.

Member Function Documentation

virtual void VICI::EBNF::EBNF::getError ( int &  line,
int &  column,
std::string &  text 
)
pure virtual

get location and details of parsing error

Parameters
linethe linenumber of the error returned in this
columnthe position on the line of the error returned in this
textthe details of the error

Implemented in VICI::stub::EBNF_Stub.

virtual ParseTree* VICI::EBNF::EBNF::parse ( csr  s)
pure virtual

parse the EBNF

Parameters
sthe text to parse.

Implemented in VICI::stub::EBNF_Stub.

virtual bool VICI::EBNF::EBNF::validate ( csr  s)
pure virtual

confirm that an EBNF is valid

Parameters
sthe text to validate

Implemented in VICI::stub::EBNF_Stub.


The documentation for this class was generated from the following file: