diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-01 02:53:32 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-01 02:53:32 -0400 |
commit | af344b1ab145f043178a473b2ad32f88a8c74442 (patch) | |
tree | ee73595cde729810bab002725300a1cbd33ceb32 /op.h | |
parent | d213b32ffc6adaffa8e9ea4081b47c7b9403112c (diff) | |
download | fork-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.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) {} }; |