summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-11 16:03:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-11 17:02:25 -0400
commitdea2aed0b509734ec4e1cd163ac2a4f013000da2 (patch)
tree7908da76c67ae5172882306a319bf26df81b73b4 /src/parser.h
parentd580079df892c30d023b3211d6c4611c17b11f8f (diff)
downloadfork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.gz
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.bz2
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.zip
Untabified all source files
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/parser.h b/src/parser.h
index 2693fc79..93ea994f 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -50,10 +50,10 @@ namespace ledger {
class expr_t::parser_t : public noncopyable
{
mutable token_t lookahead;
- mutable bool use_lookahead;
+ mutable bool use_lookahead;
token_t& next_token(std::istream& in, const parse_flags_t& tflags,
- const char expecting = '\0') const {
+ const char expecting = '\0') const {
if (use_lookahead)
use_lookahead = false;
else
@@ -76,25 +76,25 @@ class expr_t::parser_t : public noncopyable
}
ptr_op_t parse_value_term(std::istream& in,
- const parse_flags_t& flags) const;
+ const parse_flags_t& flags) const;
ptr_op_t parse_dot_expr(std::istream& in,
- const parse_flags_t& flags) const;
+ const parse_flags_t& flags) const;
ptr_op_t parse_unary_expr(std::istream& in,
- const parse_flags_t& flags) const;
+ const parse_flags_t& flags) const;
ptr_op_t parse_mul_expr(std::istream& in,
- const parse_flags_t& flags) const;
+ const parse_flags_t& flags) const;
ptr_op_t parse_add_expr(std::istream& in,
- const parse_flags_t& flags) const;
+ const parse_flags_t& flags) const;
ptr_op_t parse_logic_expr(std::istream& in,
- const parse_flags_t& flags) const;
+ const parse_flags_t& flags) const;
ptr_op_t parse_and_expr(std::istream& in,
- const parse_flags_t& flags) const;
+ const parse_flags_t& flags) const;
ptr_op_t parse_or_expr(std::istream& in,
- const parse_flags_t& flags) const;
+ const parse_flags_t& flags) const;
ptr_op_t parse_querycolon_expr(std::istream& in,
- const parse_flags_t& flags) const;
+ const parse_flags_t& flags) const;
ptr_op_t parse_value_expr(std::istream& in,
- const parse_flags_t& flags) const;
+ const parse_flags_t& flags) const;
public:
parser_t() : use_lookahead(false) {
@@ -104,9 +104,9 @@ public:
TRACE_DTOR(parser_t);
}
- ptr_op_t parse(std::istream& in,
- const parse_flags_t& flags = PARSE_DEFAULT,
- const optional<string>& original_string = NULL);
+ ptr_op_t parse(std::istream& in,
+ const parse_flags_t& flags = PARSE_DEFAULT,
+ const optional<string>& original_string = NULL);
};
} // namespace ledger