#include <mlsystem.h>
Inheritance diagram for LGrammar:
Public Methods | |
void | addRule (const String &left, const String &right) |
void | applyTo (String &src, int times=1) const |
Definition at line 74 of file mlsystem.h.
|
Adds a production rule.
Definition at line 40 of file mlsystem.cc. References Array< LRule >::add(). |
|
Applies the grammar to the given string.
Definition at line 44 of file mlsystem.cc. References String::length(), String::mid(), String::right(), and Array< LRule >::size(). |