summaryrefslogtreecommitdiff
path: root/expr.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-02 16:23:58 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-02 16:32:16 -0400
commite52a6a9bd8e2bbf3a497696eed735eb00a8b9dde (patch)
tree2eb460e8512c91af08ff5884b680d1a49fe0c743 /expr.h
parent9a9e06554eb9f57be8c839fb0af49a0473614172 (diff)
downloadledger-e52a6a9bd8e2bbf3a497696eed735eb00a8b9dde.tar.gz
ledger-e52a6a9bd8e2bbf3a497696eed735eb00a8b9dde.tar.bz2
ledger-e52a6a9bd8e2bbf3a497696eed735eb00a8b9dde.zip
More infrastructure work toward getting journal objects to provide their own
information in an abstract manner.
Diffstat (limited to 'expr.h')
-rw-r--r--expr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/expr.h b/expr.h
index 3cdc77a6..8e1ee19a 100644
--- a/expr.h
+++ b/expr.h
@@ -102,9 +102,13 @@ public:
value_t calc(scope_t& scope) const;
bool is_constant() const;
+ bool is_function() const;
+
value_t& constant_value();
const value_t& constant_value() const;
+ function_t& get_function();
+
void print(std::ostream& out, scope_t& scope) const;
void dump(std::ostream& out) const;
void read(const char *& data);