ANTLR Support Libraries 2.7.1+
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
ANTLRUtil.hpp
Go to the documentation of this file.
1 #ifndef INC_ANTLRUtil_hpp__
2 #define INC_ANTLRUtil_hpp__
3 
4 /* ANTLR Translator Generator
5  * Project led by Terence Parr at http://www.jGuru.com
6  * Software rights: http://www.antlr.org/license.html
7  *
8  * $Id:$
9  */
10 
11 #include <antlr/config.hpp>
12 #include <iostream>
13 
14 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
15 namespace antlr {
16 #endif
17 
21 ANTLR_USE_NAMESPACE(std)istream& eatwhite( ANTLR_USE_NAMESPACE(std)istream& is );
22 
29 ANTLR_USE_NAMESPACE(std)string read_string( ANTLR_USE_NAMESPACE(std)istream& in );
30 
31 /* Read a ([A-Z][0-9][a-z]_)* kindoff thing. Skips leading whitespace.
32  * @param in the istream to read from.
33  */
34 ANTLR_USE_NAMESPACE(std)string read_identifier( ANTLR_USE_NAMESPACE(std)istream& in );
35 
45 void read_AttributeNValue( ANTLR_USE_NAMESPACE(std)istream& in,
46  ANTLR_USE_NAMESPACE(std)string& attribute,
47  ANTLR_USE_NAMESPACE(std)string& value );
48 
49 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
50 }
51 #endif
52 
53 #endif