summaryrefslogtreecommitdiff
path: root/src/parser.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-22 21:17:32 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-22 21:17:32 -0400
commit52524ff2fb9b248f34d229999fbd55fef9654c8d (patch)
treeaca348f20201ae2e15fc9c7f89da1c6693da2e13 /src/parser.cc
parentc2761f4e90f9cba44b8281af0f4d90e58625f263 (diff)
downloadfork-ledger-52524ff2fb9b248f34d229999fbd55fef9654c8d.tar.gz
fork-ledger-52524ff2fb9b248f34d229999fbd55fef9654c8d.tar.bz2
fork-ledger-52524ff2fb9b248f34d229999fbd55fef9654c8d.zip
Removed some extraneous code.
Diffstat (limited to 'src/parser.cc')
-rw-r--r--src/parser.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/parser.cc b/src/parser.cc
index 4881f7bc..91eb61bb 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -159,10 +159,9 @@ expr_t::parser_t::parse_mul_expr(std::istream& in,
if (! node->right())
throw_(parse_error,
tok.symbol << " operator not followed by argument");
-
- tok = next_token(in, tflags);
+ } else {
+ push_token(tok);
}
- push_token(tok);
}
return node;
@@ -187,10 +186,9 @@ expr_t::parser_t::parse_add_expr(std::istream& in,
if (! node->right())
throw_(parse_error,
tok.symbol << " operator not followed by argument");
-
- tok = next_token(in, tflags);
+ } else {
+ push_token(tok);
}
- push_token(tok);
}
return node;