summaryrefslogtreecommitdiff
path: root/src/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.h')
-rw-r--r--src/lexer.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lexer.h b/src/lexer.h
index 37d268f..5847269 100644
--- a/src/lexer.h
+++ b/src/lexer.h
@@ -19,19 +19,21 @@ namespace Bu
19 Lexer(); 19 Lexer();
20 virtual ~Lexer(); 20 virtual ~Lexer();
21 21
22 typedef int32_t TokenType;
23
22 class Token 24 class Token
23 { 25 {
24 public: 26 public:
25 Token(); 27 Token();
26 Token( int iToken ); 28 Token( TokenType iToken );
27 29
28 template<class t> 30 template<class t>
29 Token( int iToken, const t &v ) : 31 Token( TokenType iToken, const t &v ) :
30 iToken( iToken ), 32 iToken( iToken ),
31 vExtra( v ) 33 vExtra( v )
32 { 34 {
33 } 35 }
34 int iToken; 36 TokenType iToken;
35 Bu::Variant vExtra; 37 Bu::Variant vExtra;
36 }; 38 };
37 39