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

grammar_to_parser::basic_except_terminal< E, except_choice > Class Template Reference

#include <except_terminal.h>

Inheritance diagram for grammar_to_parser::basic_except_terminal< E, except_choice >:

grammar_to_parser::basic_object_parser< E, E > grammar_to_parser::basic_parser< E > List of all members.

Public Member Functions

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

Detailed Description

template<typename E, typename except_choice>
class grammar_to_parser::basic_except_terminal< E, except_choice >

Parser usable when the set of acceptable terminals is much bigger then set of terminals which need to be excepted, in this case it is posible to define choice of unacceptable terminals (except_choice) and parse method will success if the input word is not recognized by except_choice. For example it is necessary to recognize any character except new line and line feed. The except_choice will be choice of new line and line feed then.


Member Function Documentation

template<typename E, typename except_choice>
std::basic_ostream<E>& grammar_to_parser::basic_except_terminal< E, except_choice >::format std::basic_ostream< E > &  os  )  [inline, virtual]
 

Formats the previously parsed or stored value into output stream.

Implements grammar_to_parser::basic_parser< E >.

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

The method succeedes if input word is not recognized by except_choice.

Implements grammar_to_parser::basic_parser< E >.

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

The method succeedes if input word is not recognized by except_choice.

Implements grammar_to_parser::basic_parser< E >.


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