Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

grammar_to_parser::basic_simple_choice< E > Class Template Reference

#include <simple_choice.h>

Inheritance diagram for grammar_to_parser::basic_simple_choice< E >:

grammar_to_parser::basic_simple_non_terminal< E > grammar_to_parser::basic_parser< E > List of all members.

Public Types

typedef basic_parser< E
>::parser_list 
parser_list
typedef basic_parser< E
>::parser_list_iterator 
parser_list_iterator

Public Member Functions

unsigned long parse (const E *buf, const unsigned long buf_length)
virtual std::basic_istream<
E > & 
parse (std::basic_istream< E > &is)

Detailed Description

template<typename E>
class grammar_to_parser::basic_simple_choice< E >

Choice as special case of nonterminal_type - parsed if one of symbols is parsed - it is simplified version of basic_choice Use this class when want to inherit directly and not to use the class as template parameter, so as not to use strategy - the parsing of this class is usable for regular grammars only. See xml_parser sample project.


Member Function Documentation

template<typename E>
virtual std::basic_istream<E>& grammar_to_parser::basic_simple_choice< E >::parse std::basic_istream< E > &  is  )  [inline, virtual]
 

The parse method using which the input stream is searched and the value is copied from buffer into parsed objects manipulated by basic_object_parser. For parse method is used different implementation depending on type of parser - if terminal_type, non_terminal_type or choice_type

Reimplemented from grammar_to_parser::basic_simple_non_terminal< E >.

template<typename E>
unsigned long grammar_to_parser::basic_simple_choice< E >::parse const E *  buf,
const unsigned long  buf_length
[inline, virtual]
 

The parse method using which the input buffer is searched and the value is copied from buffer into parsed objects manipulated by basic_object_parser. For parse method is used different implementation depending on type of parser - if terminal_type, non_terminal_type or choice_type.

Reimplemented from grammar_to_parser::basic_simple_non_terminal< E >.


The documentation for this class was generated from the following files:
Generated on Sun Jul 2 18:39:45 2006 for grammar2parser.kdevelop by  doxygen 1.4.1