From 0981b9d6a12bd7aadbf9286459e033ac1a2ba910 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 12 Oct 2010 07:35:08 +0000 Subject: Ok, libbu++ compiles again, the basic parser system is getting there, I think, it's still a little tricky becasue you have to do the non-terminal prime seperation yourself (I forget what it's really called), but it's going quite well. After a few tweaks to the core of it, we should be able to do some math :) --- src/lexer.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/lexer.h') 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 Lexer(); virtual ~Lexer(); + typedef int32_t TokenType; + class Token { public: Token(); - Token( int iToken ); + Token( TokenType iToken ); template - Token( int iToken, const t &v ) : + Token( TokenType iToken, const t &v ) : iToken( iToken ), vExtra( v ) { } - int iToken; + TokenType iToken; Bu::Variant vExtra; }; -- cgit v1.2.3