diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-11 16:03:50 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-11 17:02:25 -0400 |
commit | dea2aed0b509734ec4e1cd163ac2a4f013000da2 (patch) | |
tree | 7908da76c67ae5172882306a319bf26df81b73b4 /src/token.h | |
parent | d580079df892c30d023b3211d6c4611c17b11f8f (diff) | |
download | fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.gz fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.bz2 fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.zip |
Untabified all source files
Diffstat (limited to 'src/token.h')
-rw-r--r-- | src/token.h | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/src/token.h b/src/token.h index 582373cb..aae73837 100644 --- a/src/token.h +++ b/src/token.h @@ -49,52 +49,52 @@ namespace ledger { struct expr_t::token_t : public noncopyable { enum kind_t { - ERROR, // an error occurred while tokenizing - VALUE, // any kind of literal value - IDENT, // [A-Za-z_][-A-Za-z0-9_:]* - MASK, // /regexp/ - - LPAREN, // ( - RPAREN, // ) - - EQUAL, // == - NEQUAL, // != - LESS, // < - LESSEQ, // <= - GREATER, // > - GREATEREQ, // >= - - DEFINE, // := - ASSIGN, // = - MATCH, // =~ - NMATCH, // !~ - MINUS, // - - PLUS, // + - STAR, // * - SLASH, // / - KW_DIV, // div - - EXCLAM, // !, not - KW_AND, // &, &&, and - KW_OR, // |, ||, or - KW_MOD, // % - - KW_IF, // if - KW_ELSE, // else - - QUERY, // ? - COLON, // : - - DOT, // . - COMMA, // , - SEMI, // ; + ERROR, // an error occurred while tokenizing + VALUE, // any kind of literal value + IDENT, // [A-Za-z_][-A-Za-z0-9_:]* + MASK, // /regexp/ + + LPAREN, // ( + RPAREN, // ) + + EQUAL, // == + NEQUAL, // != + LESS, // < + LESSEQ, // <= + GREATER, // > + GREATEREQ, // >= + + DEFINE, // := + ASSIGN, // = + MATCH, // =~ + NMATCH, // !~ + MINUS, // - + PLUS, // + + STAR, // * + SLASH, // / + KW_DIV, // div + + EXCLAM, // !, not + KW_AND, // &, &&, and + KW_OR, // |, ||, or + KW_MOD, // % + + KW_IF, // if + KW_ELSE, // else + + QUERY, // ? + COLON, // : + + DOT, // . + COMMA, // , + SEMI, // ; TOK_EOF, UNKNOWN } kind; - char symbol[3]; + char symbol[3]; value_t value; std::size_t length; @@ -108,7 +108,7 @@ struct expr_t::token_t : public noncopyable token_t& operator=(const token_t& other) { if (&other == this) return *this; - assert(false); // only one token object is used at a time + assert(false); // only one token object is used at a time return *this; } @@ -125,7 +125,7 @@ struct expr_t::token_t : public noncopyable int parse_reserved_word(std::istream& in); void parse_ident(std::istream& in); void next(std::istream& in, const parse_flags_t& flags, - const char expecting = '\0'); + const char expecting = '\0'); void rewind(std::istream& in); void unexpected(const char wanted = '\0'); void expected(const char wanted, char c = '\0'); |