#include <LeftRG.h>
◆ compose()
template<class TerminalSymbolType , class NonterminalSymbolType >
Composing to a sequence of xml tokens helper.
- Parameters
-
out | sink for new xml tokens representing the grammar |
grammar | the grammar to compose |
◆ composeRules()
template<class TerminalSymbolType , class NonterminalSymbolType >
Helper for composing rules of the grammar to a sequence of xml tokens.
- Parameters
-
out | sink for xml tokens representing the rules of the grammar |
grammar | the grammar to compose |
◆ first()
template<class TerminalSymbolType , class NonterminalSymbolType >
Tests whether the token stream starts with this type.
\params input the iterator to sequence of xml tokens to test
- Returns
- true if the token stream iterator points to opening tag named with xml tag name of this type, false otherwise.
◆ parse()
template<class TerminalSymbolType , class NonterminalSymbolType >
Parsing from a sequence of xml tokens helper.
\params input the iterator to sequence of xml tokens to parse from
- Returns
- the new instance of the grammar
◆ parseRule()
template<class TerminalSymbolType , class NonterminalSymbolType >
Helper for parsing of individual rules of the grammar from a sequence of xml tokens.
\params input the iterator to sequence of xml tokens to parse from \params grammar the grammar to add the rule to
◆ xmlTagName()
template<class TerminalSymbolType , class NonterminalSymbolType >
The XML tag name of class.
Intentionaly a static member function to be safe in the initialisation before the main function starts.
- Returns
- string representing the XML tag name of the class
The documentation for this struct was generated from the following file:
- alib2data/src/grammar/xml/Regular/LeftRG.h