Graph grammar rule parser.
More...
#include <Rule_GMLparser.hh>
|
static std::pair< Rule, int > | parseCompactRule (const std::string &GML_string) throw (Rule_GML_error) |
|
static std::pair< Rule, int > | parseRule (const std::string &GML_string) throw (Rule_GML_error) |
|
Wrapper for ggl::Rule_GML_grammar BNF grammar parser that parses a
GML string representation of a ggl::Rule object. See there for further
details.
- Author
- Martin Mann (c) 2012 http://www.bioinf.uni-freiburg.de/~mmann/
Definition at line 22 of file Rule_GMLparser.hh.
static std::pair< Rule, int > ggl::Rule_GMLparser::parseCompactRule |
( |
const std::string & |
GML_string | ) |
throw (Rule_GML_error) |
|
static |
Parses a GRAPH GML string that encodes a compacted RULE GML and generates a Rule object.
NOTE: rule constraints, its label, or wildcard information are not parsed, just the nodes and edges!
- Parameters
-
GML_string | the string to parse |
- Returns
- pair.first = the graph encoding of the molecule pair.second = -1 if parsing was successful, in error case it returns the string position that caused the parsing error
- Exceptions
-
static std::pair< Rule, int > ggl::Rule_GMLparser::parseRule |
( |
const std::string & |
GML_string | ) |
throw (Rule_GML_error) |
|
static |
Parses a GML string and generates a Rule object
- Parameters
-
GML_string | the string to parse |
- Returns
- pair.first = the graph encoding of the molecule pair.second = -1 if parsing was successful, in error case it returns the string position that caused the parsing error
- Exceptions
-
The documentation for this class was generated from the following file: