#include <choice.h>
Inheritance diagram for grammar_to_parser::basic_choice< E, A >:
Public Types | |
typedef basic_parser< E >::parser_list | parser_list |
typedef basic_parser< E >::parser_list_iterator | parser_list_iterator |
Public Member Functions | |
basic_choice () | |
Default constructor. | |
basic_choice (const basic_choice &rhs) | |
Copy constructor. | |
basic_choice (const A &obj) | |
Constructor taking a compound object. | |
virtual | ~basic_choice () |
Destructor. | |
virtual unsigned long | parse (const E *buf, const unsigned long buf_length) |
virtual unsigned long | parse (const E *buf, const unsigned long buf_length, basic_parser_strategy< E > &strategy) |
virtual std::basic_istream< E > & | parse (std::basic_istream< E > &is) |
|
The method tries to parse any of the symbols, stops when finds the first successive parser Reimplemented from grammar_to_parser::basic_non_terminal< E, A >. |
|
The method calls the proper strategy method - parse_choice. Reimplemented from grammar_to_parser::basic_non_terminal< E, A >. |
|
The method tries to parse any of the symbols, stops when finds the first successive parser
Reimplemented from grammar_to_parser::basic_non_terminal< E, A >. |