You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.7 KiB
54 lines
1.7 KiB
15 years ago
|
#ifndef INC_GettextParser_hpp_
|
||
|
#define INC_GettextParser_hpp_
|
||
|
|
||
|
#line 2 "gettext.g"
|
||
|
|
||
|
#include <string>
|
||
|
using namespace std;
|
||
|
#include "parser.h"
|
||
|
|
||
4 years ago
|
#line 11 "GettextParser.h"
|
||
|
#include "antlr/config.h"
|
||
|
/* $ANTLR 2.7.1: "gettext.g" -> "GettextParser.h"$ */
|
||
|
#include "antlr/TokenStream.h"
|
||
|
#include "antlr/TokenBuffer.h"
|
||
|
#include "GettextParserTokenTypes.h"
|
||
|
#include "antlr/LLkParser.h"
|
||
15 years ago
|
|
||
|
class GettextParser : public ANTLR_USE_NAMESPACE(antlr)LLkParser, public GettextParserTokenTypes
|
||
|
{
|
||
|
#line 1 "gettext.g"
|
||
4 years ago
|
#line 22 "GettextParser.h"
|
||
15 years ago
|
protected:
|
||
|
GettextParser(ANTLR_USE_NAMESPACE(antlr)TokenBuffer& tokenBuf, int k);
|
||
|
public:
|
||
|
GettextParser(ANTLR_USE_NAMESPACE(antlr)TokenBuffer& tokenBuf);
|
||
|
protected:
|
||
|
GettextParser(ANTLR_USE_NAMESPACE(antlr)TokenStream& lexer, int k);
|
||
|
public:
|
||
|
GettextParser(ANTLR_USE_NAMESPACE(antlr)TokenStream& lexer);
|
||
|
GettextParser(const ANTLR_USE_NAMESPACE(antlr)ParserSharedInputState& state);
|
||
|
public: MsgList file();
|
||
|
public: string comment();
|
||
|
public: MsgBlock file_block();
|
||
|
public: string msgid();
|
||
|
public: string msgstr();
|
||
|
public: string msgid_plural();
|
||
|
public: string msgstr_plural();
|
||
|
private:
|
||
|
static const char* _tokenNames[];
|
||
|
|
||
|
static const unsigned long _tokenSet_0_data_[];
|
||
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0;
|
||
|
static const unsigned long _tokenSet_1_data_[];
|
||
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1;
|
||
|
static const unsigned long _tokenSet_2_data_[];
|
||
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2;
|
||
|
static const unsigned long _tokenSet_3_data_[];
|
||
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_3;
|
||
|
static const unsigned long _tokenSet_4_data_[];
|
||
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_4;
|
||
|
};
|
||
|
|
||
|
#endif /*INC_GettextParser_hpp_*/
|