diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
| commit | ec05778d5718a7912e506764d443a78d6a6179e3 (patch) | |
| tree | 78a9a01532180030c095acefc45763f07c14edb8 /src/experimental/lexer.cpp | |
| parent | b20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff) | |
| download | libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2 libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip | |
Converted tabs to spaces with tabconv.
Diffstat (limited to '')
| -rw-r--r-- | src/experimental/lexer.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/experimental/lexer.cpp b/src/experimental/lexer.cpp index 48ee017..ae95d09 100644 --- a/src/experimental/lexer.cpp +++ b/src/experimental/lexer.cpp | |||
| @@ -18,23 +18,23 @@ Bu::Lexer::~Lexer() | |||
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | Bu::Lexer::Token::Token() : | 20 | Bu::Lexer::Token::Token() : |
| 21 | iToken( -1 ) | 21 | iToken( -1 ) |
| 22 | { | 22 | { |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | Bu::Lexer::Token::Token( Bu::Lexer::TokenType iToken ) : | 25 | Bu::Lexer::Token::Token( Bu::Lexer::TokenType iToken ) : |
| 26 | iToken( iToken ) | 26 | iToken( iToken ) |
| 27 | { | 27 | { |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | Bu::String Bu::Lexer::tokenToString( const Bu::Lexer::Token &t ) | 30 | Bu::String Bu::Lexer::tokenToString( const Bu::Lexer::Token &t ) |
| 31 | { | 31 | { |
| 32 | Bu::MemBuf mb; | 32 | Bu::MemBuf mb; |
| 33 | Bu::Formatter f( mb ); | 33 | Bu::Formatter f( mb ); |
| 34 | f << "<" << t.iToken << ">"; | 34 | f << "<" << t.iToken << ">"; |
| 35 | if( t.vExtra.isSet() ) | 35 | if( t.vExtra.isSet() ) |
| 36 | f << " (" << t.vExtra << ")"; | 36 | f << " (" << t.vExtra << ")"; |
| 37 | 37 | ||
| 38 | return mb.getString(); | 38 | return mb.getString(); |
| 39 | } | 39 | } |
| 40 | 40 | ||
