summaryrefslogtreecommitdiff
path: root/src/parser.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-14 21:36:42 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-05-14 21:44:00 -0600
commitf4f3058b8cd75c04080f9b68cb54b9584eafb39f (patch)
treeeca9ca6ceca001209fb93c05b52e21031280d18c /src/parser.cc
parent96172669053bbba7263a370f109f70615049a0c6 (diff)
downloadfork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.gz
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.bz2
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.zip
Switch to using Boost.Format
Diffstat (limited to 'src/parser.cc')
-rw-r--r--src/parser.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/parser.cc b/src/parser.cc
index 360ac93d..a17ad271 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -113,7 +113,7 @@ expr_t::parser_t::parse_dot_expr(std::istream& in,
node->set_right(parse_call_expr(in, tflags));
if (! node->right())
throw_(parse_error,
- _("%1 operator not followed by argument") << tok.symbol);
+ _f("%1% operator not followed by argument") % tok.symbol);
} else {
push_token(tok);
break;
@@ -137,7 +137,7 @@ expr_t::parser_t::parse_unary_expr(std::istream& in,
ptr_op_t term(parse_dot_expr(in, tflags));
if (! term)
throw_(parse_error,
- _("%1 operator not followed by argument") << tok.symbol);
+ _f("%1% operator not followed by argument") % tok.symbol);
// A very quick optimization
if (term->kind == op_t::VALUE) {
@@ -154,7 +154,7 @@ expr_t::parser_t::parse_unary_expr(std::istream& in,
ptr_op_t term(parse_dot_expr(in, tflags));
if (! term)
throw_(parse_error,
- _("%1 operator not followed by argument") << tok.symbol);
+ _f("%1% operator not followed by argument") % tok.symbol);
// A very quick optimization
if (term->kind == op_t::VALUE) {
@@ -195,7 +195,7 @@ expr_t::parser_t::parse_mul_expr(std::istream& in,
node->set_right(parse_unary_expr(in, tflags));
if (! node->right())
throw_(parse_error,
- _("%1 operator not followed by argument") << tok.symbol);
+ _f("%1% operator not followed by argument") % tok.symbol);
} else {
push_token(tok);
break;
@@ -225,7 +225,7 @@ expr_t::parser_t::parse_add_expr(std::istream& in,
node->set_right(parse_mul_expr(in, tflags));
if (! node->right())
throw_(parse_error,
- _("%1 operator not followed by argument") << tok.symbol);
+ _f("%1% operator not followed by argument") % tok.symbol);
} else {
push_token(tok);
break;
@@ -292,7 +292,7 @@ expr_t::parser_t::parse_logic_expr(std::istream& in,
if (! node->right())
throw_(parse_error,
- _("%1 operator not followed by argument") << tok.symbol);
+ _f("%1% operator not followed by argument") % tok.symbol);
if (negate) {
prev = node;
@@ -324,7 +324,7 @@ expr_t::parser_t::parse_and_expr(std::istream& in,
node->set_right(parse_logic_expr(in, tflags));
if (! node->right())
throw_(parse_error,
- _("%1 operator not followed by argument") << tok.symbol);
+ _f("%1% operator not followed by argument") % tok.symbol);
} else {
push_token(tok);
break;
@@ -351,7 +351,7 @@ expr_t::parser_t::parse_or_expr(std::istream& in,
node->set_right(parse_and_expr(in, tflags));
if (! node->right())
throw_(parse_error,
- _("%1 operator not followed by argument") << tok.symbol);
+ _f("%1% operator not followed by argument") % tok.symbol);
} else {
push_token(tok);
break;
@@ -377,7 +377,7 @@ expr_t::parser_t::parse_querycolon_expr(std::istream& in,
node->set_right(parse_or_expr(in, tflags));
if (! node->right())
throw_(parse_error,
- _("%1 operator not followed by argument") << tok.symbol);
+ _f("%1% operator not followed by argument") % tok.symbol);
next_token(in, tflags.plus_flags(PARSE_OP_CONTEXT), token_t::COLON);
prev = node->right();
@@ -386,7 +386,7 @@ expr_t::parser_t::parse_querycolon_expr(std::istream& in,
subnode->set_right(parse_or_expr(in, tflags));
if (! subnode->right())
throw_(parse_error,
- _("%1 operator not followed by argument") << tok.symbol);
+ _f("%1% operator not followed by argument") % tok.symbol);
node->set_right(subnode);
}