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

grammar_to_parser::basic_ascii_range_terminal< E > Class Template Reference

#include <ascii_range_terminal.h>

Inheritance diagram for grammar_to_parser::basic_ascii_range_terminal< E >:

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

Public Member Functions

 basic_ascii_range_terminal (E from_char, E to_char)
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)

Private Types

typedef std::auto_ptr< E > std_auto_ptr

Private Attributes

m_from_char
m_to_char

Detailed Description

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

Used to recognize input item from specified range, range is specified in constructor.


Member Function Documentation

template<typename E>
std::basic_ostream< E > & grammar_to_parser::basic_ascii_range_terminal< E >::format std::basic_ostream< E > &  os  )  [virtual]
 

Formats the previously parsed or stored value into output stream

Implements grammar_to_parser::basic_parser< E >.

template<typename E>
std::basic_istream< E > & grammar_to_parser::basic_ascii_range_terminal< E >::parse std::basic_istream< E > &  is  )  [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

Implements grammar_to_parser::basic_parser< E >.

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

The input is succesfully parsed, if first item in buffer is within the range specified in constructor input

Parameters:
[in] buf Buffer to be parsed
[in] buf_length Length of the buffer
Returns:
The lenght of the buffer part, which was parsed (==1), 0 if parse failed.

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:45 2006 for grammar2parser.kdevelop by  doxygen 1.4.1