00001 #ifndef INC_ANTLRUtil_hpp__ 00002 #define INC_ANTLRUtil_hpp__ 00003 00004 /* ANTLR Translator Generator 00005 * Project led by Terence Parr at http://www.jGuru.com 00006 * Software rights: http://www.antlr.org/license.html 00007 * 00008 * $Id:$ 00009 */ 00010 00011 #include <antlr/config.hpp> 00012 #include <iostream> 00013 00014 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00015 namespace antlr { 00016 #endif 00017 00021 ANTLR_USE_NAMESPACE(std)istream& eatwhite( ANTLR_USE_NAMESPACE(std)istream& is ); 00022 00029 ANTLR_USE_NAMESPACE(std)string read_string( ANTLR_USE_NAMESPACE(std)istream& in ); 00030 00031 /* Read a ([A-Z][0-9][a-z]_)* kindoff thing. Skips leading whitespace. 00032 * @param in the istream to read from. 00033 */ 00034 ANTLR_USE_NAMESPACE(std)string read_identifier( ANTLR_USE_NAMESPACE(std)istream& in ); 00035 00045 void read_AttributeNValue( ANTLR_USE_NAMESPACE(std)istream& in, 00046 ANTLR_USE_NAMESPACE(std)string& attribute, 00047 ANTLR_USE_NAMESPACE(std)string& value ); 00048 00049 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00050 } 00051 #endif 00052 00053 #endif