|
| | NPDTA (ext::set< StateType > states, ext::set< InputSymbolType > inputAlphabet, ext::set< OutputSymbolType > outputAlphabet, ext::set< PushdownStoreSymbolType > pushdownStoreAlphabet, StateType initialState, PushdownStoreSymbolType initialSymbol, ext::set< StateType > finalStates) |
| | Creates a new instance of the automaton with a concrete set of states, input alphabet, pushdown store alphabet, initial state, initial pushdown symbol and a set of final states. More...
|
| |
| | NPDTA (StateType initialState, PushdownStoreSymbolType initialPushdownSymbol) |
| | Creates a new instance of the automaton with a concrete initial state and initial pushdown store symbol. More...
|
| |
| const StateType & | getInitialState () const & |
| |
| StateType && | getInitialState () && |
| |
| bool | setInitialState (StateType state) |
| |
| const ext::set< StateType > & | getStates () const & |
| |
| ext::set< StateType > && | getStates () && |
| |
| bool | addState (StateType state) |
| |
| void | setStates (ext::set< StateType > states) |
| |
| void | removeState (const StateType &state) |
| |
| const ext::set< StateType > & | getFinalStates () const & |
| |
| ext::set< StateType > && | getFinalStates () && |
| |
| bool | addFinalState (StateType state) |
| |
| void | setFinalStates (ext::set< StateType > states) |
| |
| void | removeFinalState (const StateType &state) |
| |
| const ext::set< PushdownStoreSymbolType > & | getPushdownStoreAlphabet () const & |
| |
| ext::set< PushdownStoreSymbolType > && | getPushdownStoreAlphabet () && |
| |
| bool | addPushdownStoreSymbol (PushdownStoreSymbolType symbol) |
| |
| void | addPushdownStoreSymbols (ext::set< PushdownStoreSymbolType > symbols) |
| |
| void | setPushdownStoreAlphabet (ext::set< PushdownStoreSymbolType > symbols) |
| |
| void | removePushdownStoreSymbol (const PushdownStoreSymbolType &symbol) |
| |
| const PushdownStoreSymbolType & | getInitialSymbol () const & |
| |
| PushdownStoreSymbolType && | getInitialSymbol () && |
| |
| bool | setInitialSymbol (PushdownStoreSymbolType symbol) |
| |
| const ext::set< InputSymbolType > & | getInputAlphabet () const & |
| |
| ext::set< InputSymbolType > && | getInputAlphabet () && |
| |
| bool | addInputSymbol (InputSymbolType symbol) |
| |
| void | addInputSymbols (ext::set< InputSymbolType > symbols) |
| |
| void | setInputAlphabet (ext::set< InputSymbolType > symbols) |
| |
| void | removeInputSymbol (const InputSymbolType &symbol) |
| |
| const ext::set< OutputSymbolType > & | getOutputAlphabet () const & |
| |
| ext::set< OutputSymbolType > && | getOutputAlphabet () && |
| |
| bool | addOutputSymbol (OutputSymbolType symbol) |
| |
| void | addOutputSymbols (ext::set< OutputSymbolType > symbols) |
| |
| void | setOutputAlphabet (ext::set< OutputSymbolType > symbols) |
| |
| void | removeOutputSymbol (const OutputSymbolType &symbol) |
| |
| bool | addTransition (StateType from, common::symbol_or_epsilon< InputSymbolType > input, ext::vector< PushdownStoreSymbolType > pop, StateType to, ext::vector< PushdownStoreSymbolType > push, ext::vector< OutputSymbolType > output) |
| | Adds a transition to the automaton. More...
|
| |
| bool | addTransition (StateType from, InputSymbolType input, ext::vector< PushdownStoreSymbolType > pop, StateType to, ext::vector< PushdownStoreSymbolType > push, ext::vector< OutputSymbolType > output) |
| | Adds a transition to the automaton. More...
|
| |
| bool | addTransition (StateType from, ext::vector< PushdownStoreSymbolType > pop, StateType to, ext::vector< PushdownStoreSymbolType > push, ext::vector< OutputSymbolType > output) |
| | Adds a transition to the automaton. More...
|
| |
| bool | removeTransition (const StateType &from, const common::symbol_or_epsilon< InputSymbolType > &input, const ext::vector< PushdownStoreSymbolType > &pop, const StateType &to, const ext::vector< PushdownStoreSymbolType > &push, const ext::vector< OutputSymbolType > &output) |
| | Removes a transition from the automaton. More...
|
| |
| bool | removeTransition (const StateType &from, const InputSymbolType &input, const ext::vector< PushdownStoreSymbolType > &pop, const StateType &to, const ext::vector< PushdownStoreSymbolType > &push, const ext::vector< OutputSymbolType > &output) |
| | Removes a transition from the automaton. More...
|
| |
| bool | removeTransition (const StateType &from, const ext::vector< PushdownStoreSymbolType > &pop, const StateType &to, const ext::vector< PushdownStoreSymbolType > &push, const ext::vector< OutputSymbolType > &output) |
| | Removes a transition from the automaton. More...
|
| |
| const ext::multimap< ext::tuple< StateType, common::symbol_or_epsilon< InputSymbolType >, ext::vector< PushdownStoreSymbolType > >, ext::tuple< StateType, ext::vector< PushdownStoreSymbolType >, ext::vector< OutputSymbolType > > > & | getTransitions () const & |
| |
| ext::multimap< ext::tuple< StateType, common::symbol_or_epsilon< InputSymbolType >, ext::vector< PushdownStoreSymbolType > >, ext::tuple< StateType, ext::vector< PushdownStoreSymbolType >, ext::vector< OutputSymbolType > > > && | getTransitions () && |
| |
| ext::multimap< ext::tuple< StateType, common::symbol_or_epsilon< InputSymbolType >, ext::vector< PushdownStoreSymbolType > >, ext::tuple< StateType, ext::vector< PushdownStoreSymbolType >, ext::vector< OutputSymbolType > > > | getTransitionsFromState (const StateType &from) const |
| |
| auto | operator<=> (const NPDTA &other) const |
| |
| bool | operator== (const NPDTA &other) const |
| |
| void | accessComponent () |
| |
template<class InputSymbolTypeT = DefaultSymbolType, class OutputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
class automaton::NPDTA< InputSymbolTypeT, OutputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >
Nondeterministic Pushdown Translation Automaton. Translates context free languages.
Definition A = (Q, T, D, G, I, Z, \delta, F), Q (States) = nonempty finite set of states, T (TerminalAlphabet) = finite set of terminal symbols - having this empty won't let automaton do much though, T (OutputAlphabet) = finite set of output symbols - having this empty won't let automaton do translation at all, G (PushdownStoreAlphabet) = finite set of pushdown store symbol - having this empty makes the automaton equivalent to DFA I (InitialState) = initial state, Z (InitialPushdownStoreSymbol) = initial pushdown store symbol \delta = transition function of the form A \times a \times \alpha -> B \times \beta \times \gamma, where A, B \in Q, a \in T \cup { \eps }, \alpha, \beta \in G*, and \gamma \in D*, F (FinalStates) = set of final states
- Template Parameters
-
| InputSymbolTypeT | used for the terminal alphabet |
| OutputSymbolTypeT | used for the output alphabet |
| PushdownSymbolTypeT | used for the pushdown store alphabet |
| StateTypeT | used to the states, and the initial state of the automaton. |