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

grammar_to_parser::basic_value_parser< E, A > Class Template Reference

#include <value_parser.h>

Inheritance diagram for grammar_to_parser::basic_value_parser< E, A >:

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

Public Member Functions

virtual 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, typename A>
class grammar_to_parser::basic_value_parser< E, A >

The terminal_type parser, which stores the value of specified type from input, i.e. if typename A is int, and input is "5=5", it stores 5, input rest will be "=5"


Member Function Documentation

template<typename E, typename A>
std::basic_istream< E > & grammar_to_parser::basic_value_parser< E, A >::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, typename A>
unsigned long grammar_to_parser::basic_value_parser< E, A >::parse const E *  buf,
const unsigned long  buf_length
[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.

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