summaryrefslogtreecommitdiff
path: root/src/expr.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-07 04:27:28 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-07 04:27:28 -0400
commit011f35b730817034168369be1a7bd62b31146b64 (patch)
treead5c85c5417278cbb6dd4b1e544e36f6ebc304e0 /src/expr.h
parent19694cf2a2986849048ab01fbbfda7f0b9ee102a (diff)
downloadfork-ledger-011f35b730817034168369be1a7bd62b31146b64.tar.gz
fork-ledger-011f35b730817034168369be1a7bd62b31146b64.tar.bz2
fork-ledger-011f35b730817034168369be1a7bd62b31146b64.zip
Implemented expr_context.
Diffstat (limited to 'src/expr.h')
-rw-r--r--src/expr.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/expr.h b/src/expr.h
index d5ff276e..6805e6d5 100644
--- a/src/expr.h
+++ b/src/expr.h
@@ -70,6 +70,8 @@ class expr_t
struct token_t;
class parser_t;
+ friend string expr_context(const expr_t& expr);
+
public:
class op_t;
typedef intrusive_ptr<op_t> ptr_op_t;
@@ -141,10 +143,7 @@ public:
std::ostream& operator<<(std::ostream& out, const expr_t& expr);
-inline string expr_context(const expr_t& expr) {
- // jww (2009-02-01): NYI
- return "EXPR";
-}
+string expr_context(const expr_t& expr);
} // namespace ledger