#include <grammarbase.h>
Inheritance diagram for GrammarBase:

Public Methods | |
| GrammarBase (void) | |
| A constructor. | |
| virtual | ~GrammarBase (void) |
| A destructor. More... | |
| virtual void | setAlphabetBaseSize (size_t size)=0 |
| Set the base size of terminal alphabet. More... | |
| virtual void | append (TerminalValue value)=0 |
| Append one terminal symbol to the root rule of the grammar. More... | |
| virtual void | flush (void)=0 |
| Ensure that all appended terminal symbols have been processed. More... | |
| virtual void | print (void)=0 |
| Print contents of the grammar. More... | |
| virtual void | reconstructInput (void)=0 |
| Reconstruct data represented by the grammar. More... | |
This class represents an abstract prototype for all grammars.
Definition at line 41 of file grammarbase.h.
|
|
A destructor.
Does nothing. Definition at line 53 of file grammarbase.h. |
|
|
Append one terminal symbol to the root rule of the grammar.
Implemented in KYGrammar. Referenced by XmlSimpleModel::manageEvent, and XmlAdaptiveModel::manageEvent. |
|
|
Ensure that all appended terminal symbols have been processed.
Implemented in KYGrammar. |
|
|
Print contents of the grammar.
This method outputs a human-readable representation of the grammar on the standard output. Implemented in KYGrammar. |
|
|
Reconstruct data represented by the grammar.
Call to this method results in reconstruction of the data represented by the grammar. Implemented in KYGrammar. |
|
|
Set the base size of terminal alphabet.
Implemented in KYGrammar. Referenced by XmlSimpleModel::manageEvent, and XmlAdaptiveModel::manageEvent. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002