1 #ifndef	_T_TEST_TRAITS_H
2 #define	_T_TEST_TRAITS_H
3 
4 // First thing we always do is include the ANTLR3 generated files, which
5 // will automatically include the antlr3 runtime header files.
6 // The compiler must use -I (or set the project settings in VS2005)
7 // to locate the antlr3 runtime files and -I. to find this file
8 #include <antlr3.hpp>
9 
10 // Forward declaration for Lexer&Parser class(es)
11 namespace Antlr3Test {
12 	class S1Lexer;
13 	class S1Parser;
14 
15 	class t001lexer;
16 	class t002lexer;
17 	class t003lexer;
18 	class t004lexer;
19 	class t005lexer;
20 	class t006lexer;
21 	class t007lexer;
22 	class t008lexer;
23 	class t009lexer;
24 	class t010lexer;
25 	class t011lexer;
26 	class t012lexerXMLLexer;
27 	class t051lexer;
28 
29 	class t039labelsLexer;
30 	class t039labelsParser;
31 };
32 
33 namespace Antlr3Test {
34 
35 	//code for overriding
36 	template<class ImplTraits>
37 	class UserTraits : public antlr3::CustomTraitsBase<ImplTraits>
38 	{
39 	public:
40 	};
41 
42 	// Even Lexer only samples need some Parser class as a template parameter
43 	class NoParser {
44 	};
45 
46 	// Instantiate the Traits class(will be used for Lexer/Parser template instantiations)
47 	typedef antlr3::Traits<S1Lexer, S1Parser, UserTraits> S1LexerTraits;
48 	typedef antlr3::Traits<S1Lexer, S1Parser, UserTraits> S1ParserTraits;
49 
50 	typedef antlr3::Traits<t001lexer, NoParser, UserTraits> t001lexerTraits;
51 	typedef antlr3::Traits<t002lexer, NoParser, UserTraits> t002lexerTraits;
52 	typedef antlr3::Traits<t003lexer, NoParser, UserTraits> t003lexerTraits;
53 	typedef antlr3::Traits<t004lexer, NoParser, UserTraits> t004lexerTraits;
54 	typedef antlr3::Traits<t005lexer, NoParser, UserTraits> t005lexerTraits;
55 	typedef antlr3::Traits<t006lexer, NoParser, UserTraits> t006lexerTraits;
56 	typedef antlr3::Traits<t007lexer, NoParser, UserTraits> t007lexerTraits;
57 	typedef antlr3::Traits<t008lexer, NoParser, UserTraits> t008lexerTraits;
58 	typedef antlr3::Traits<t009lexer, NoParser, UserTraits> t009lexerTraits;
59 	typedef antlr3::Traits<t010lexer, NoParser, UserTraits> t010lexerTraits;
60 	typedef antlr3::Traits<t011lexer, NoParser, UserTraits> t011lexerTraits;
61 	typedef antlr3::Traits<t012lexerXMLLexer, NoParser, UserTraits> t012lexerXMLLexerTraits;
62 	typedef antlr3::Traits<t051lexer, NoParser, UserTraits> t051lexerTraits;
63 
64 	typedef antlr3::Traits<t039labelsLexer, t039labelsParser, UserTraits> t039labelsLexerTraits;
65 	typedef t039labelsLexerTraits t039labelsParserTraits;
66 };
67 
68 #endif
69