LexatomLoader_Plain (1163B)
1 /* -*- C++ -*- vim: set syntax=cpp: */ 2 /* (C) 2008 Frank-Rene Schaefer*/ 3 #ifndef __QUEX_INCLUDE_GUARD__BUFFER__LEXATOMS__LEXATOM_LOADER_PLAIN 4 #define __QUEX_INCLUDE_GUARD__BUFFER__LEXATOMS__LEXATOM_LOADER_PLAIN 5 /**/ 6 7 #if ! defined (__QUEX_OPTION_PLAIN_C) 8 # include <iostream> 9 # include <cerrno> 10 # include <stdexcept> 11 #endif 12 #include "definitions" 13 #include "bufferBuffer" 14 #include "LexatomLoader" 15 #include "ByteLoader" 16 17 QUEX_NAMESPACE_MAIN_OPEN 18 19 typedef struct QUEX_SETTING_USER_CLASS_DECLARATION_EPILOG QUEX_NAME(LexatomLoader_Plain_tag) { 20 /* Derived LexatomLoader from implemented as 'first member is base class'. 21 * (This is the 'C' way to express derivation) */ 22 QUEX_NAME(LexatomLoader) base; 23 } QUEX_NAME(LexatomLoader_Plain); 24 25 QUEX_INLINE QUEX_NAME(LexatomLoader)* 26 QUEX_NAME(LexatomLoader_Plain_new)(QUEX_NAME(ByteLoader)* byte_loader); 27 /* input_handle is the file handle or pointer to the input stream from where the 28 * incoming characters are to be read. */ 29 30 QUEX_NAMESPACE_MAIN_CLOSE 31 32 #endif /* __INCLUDE_GUARD__QUEX_BUFFER_INPUT_STRATEGY_PLAIN__ */