summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-01 02:53:32 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-01 02:53:32 -0400
commitaf344b1ab145f043178a473b2ad32f88a8c74442 (patch)
treeee73595cde729810bab002725300a1cbd33ceb32 /op.h
parentd213b32ffc6adaffa8e9ea4081b47c7b9403112c (diff)
downloadfork-ledger-af344b1ab145f043178a473b2ad32f88a8c74442.tar.gz
fork-ledger-af344b1ab145f043178a473b2ad32f88a8c74442.tar.bz2
fork-ledger-af344b1ab145f043178a473b2ad32f88a8c74442.zip
Improved the output from some debugging commands.
There are now three commands one can use to interact with value expressions directly: ledger parse EXPR # shows the parse tree resulting from EXPR ledger compile EXPR # shows what the compiled tree looks like ledger eval EXPR # print the resulting value, useful in scripts
Diffstat (limited to 'op.h')
-rw-r--r--op.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/op.h b/op.h
index ec5273b0..bb832359 100644
--- a/op.h
+++ b/op.h
@@ -275,11 +275,12 @@ public:
unsigned long * start_pos;
unsigned long * end_pos;
- print_context_t(scope_t& _scope,
- const bool _relaxed = false,
+ // jww (2008-08-01): Is a scope needed here?
+ print_context_t(scope_t& _scope,
+ const bool _relaxed = false,
const ptr_op_t& _op_to_find = ptr_op_t(),
unsigned long * _start_pos = NULL,
- unsigned long * _end_pos = NULL)
+ unsigned long * _end_pos = NULL)
: scope(_scope), relaxed(_relaxed), op_to_find(_op_to_find),
start_pos(_start_pos), end_pos(_end_pos) {}
};