diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-08-22 17:54:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-08-22 17:54:26 +0200 |
commit | 64aa9e062d09d33de99ab4ddc0dc73828af2543e (patch) | |
tree | 4ca7cd26dec156b2d4c28f100679e3db12dace91 /cli/token.ixx | |
parent | dc7b8d2063dac867f2e87dbe764d2f3df2331e95 (diff) |
Convert to the lower case naming convention
Diffstat (limited to 'cli/token.ixx')
-rw-r--r-- | cli/token.ixx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/cli/token.ixx b/cli/token.ixx index 93db6d8..4715813 100644 --- a/cli/token.ixx +++ b/cli/token.ixx @@ -3,74 +3,74 @@ // copyright : Copyright (c) 2009 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -inline Token::Type Token:: +inline token::token_type token:: type () const { return type_; } -inline std::size_t Token:: +inline std::size_t token:: line () const { return l_; } -inline std::size_t Token:: +inline std::size_t token:: column () const { return c_; } -inline Token::Keyword Token:: +inline token::keyword_type token:: keyword () const { return type_ == t_keyword ? keyword_ : k_invalid; } -inline std::string const& Token:: +inline std::string const& token:: identifier () const { return str_; } -inline Token::Punctuation Token:: +inline token::punctuation_type token:: punctuation () const { return type_ == t_punctuation ? punctuation_ : p_invalid; } -inline std::string const& Token:: +inline std::string const& token:: literal () const { return str_; } -inline std::string const& Token:: +inline std::string const& token:: expression () const { return str_; } -inline Token:: -Token (std::size_t l, std::size_t c) +inline token:: +token (std::size_t l, std::size_t c) : l_ (l), c_ (c), type_ (t_eos) { } -inline Token:: -Token (Keyword k, std::size_t l, std::size_t c) +inline token:: +token (keyword_type k, std::size_t l, std::size_t c) : l_ (l), c_ (c), type_ (t_keyword), keyword_ (k) { } -inline Token:: -Token (Punctuation p, std::size_t l, std::size_t c) +inline token:: +token (punctuation_type p, std::size_t l, std::size_t c) : l_ (l), c_ (c), type_ (t_punctuation), punctuation_ (p) { } -inline Token:: -Token (Type t, std::string const& s, std::size_t l, std::size_t c) +inline token:: +token (token_type t, std::string const& s, std::size_t l, std::size_t c) : l_ (l), c_ (c), type_ (t), str_ (s) { } |