summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-08-22 17:54:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-08-22 17:54:26 +0200
commit64aa9e062d09d33de99ab4ddc0dc73828af2543e (patch)
tree4ca7cd26dec156b2d4c28f100679e3db12dace91 /tests
parentdc7b8d2063dac867f2e87dbe764d2f3df2331e95 (diff)
Convert to the lower case naming convention
Diffstat (limited to 'tests')
-rw-r--r--tests/lexer/driver.cxx28
-rw-r--r--tests/parser/driver.cxx6
2 files changed, 17 insertions, 17 deletions
diff --git a/tests/lexer/driver.cxx b/tests/lexer/driver.cxx
index 4b431eb..c888890 100644
--- a/tests/lexer/driver.cxx
+++ b/tests/lexer/driver.cxx
@@ -42,70 +42,70 @@ int main (int argc, char* argv[])
ifs.exceptions (ifstream::failbit | ifstream::badbit);
ifs.open (argv[1]);
- Lexer l (ifs, argv[1]);
+ lexer l (ifs, argv[1]);
while (true)
{
- Token t (l.next ());
+ token t (l.next ());
switch (t.type ())
{
- case Token::t_eos:
+ case token::t_eos:
{
cout << "<EOS>" << endl;
return 0;
}
- case Token::t_keyword:
+ case token::t_keyword:
{
cout << "keyword: " << keywords[t.keyword ()] << endl;
break;
}
- case Token::t_identifier:
+ case token::t_identifier:
{
cout << "identifier: " << t.identifier () << endl;
break;
}
- case Token::t_punctuation:
+ case token::t_punctuation:
{
cout << punctuation[t.punctuation ()] << endl;
break;
}
- case Token::t_path_lit:
+ case token::t_path_lit:
{
cout << "path: " << t.literal () << endl;
break;
}
- case Token::t_string_lit:
+ case token::t_string_lit:
{
cout << t.literal () << endl;
break;
}
- case Token::t_char_lit:
+ case token::t_char_lit:
{
cout << t.literal () << endl;
break;
}
- case Token::t_bool_lit:
+ case token::t_bool_lit:
{
cout << t.literal () << endl;
break;
}
- case Token::t_int_lit:
+ case token::t_int_lit:
{
cout << t.literal () << endl;
break;
}
- case Token::t_float_lit:
+ case token::t_float_lit:
{
cout << t.literal () << endl;
break;
}
- case Token::t_call_expr:
+ case token::t_call_expr:
{
cout << t.expression () << endl;
break;
}
- case Token::t_template_expr:
+ case token::t_template_expr:
{
cout << t.expression () << endl;
break;
diff --git a/tests/parser/driver.cxx b/tests/parser/driver.cxx
index c783503..27490b1 100644
--- a/tests/parser/driver.cxx
+++ b/tests/parser/driver.cxx
@@ -24,10 +24,10 @@ int main (int argc, char* argv[])
ifs.exceptions (ifstream::failbit | ifstream::badbit);
ifs.open (argv[1]);
- Parser parser;
- parser.parse (ifs, argv[1]);
+ parser p;
+ p.parse (ifs, argv[1]);
}
- catch (Parser::InvalidInput const&)
+ catch (parser::invalid_input const&)
{
return 1;
}