diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-08 04:30:05 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-08 04:30:05 -0400 |
commit | 2d5ad7dee89ebe9c014270882e44d3a7a8a626fd (patch) | |
tree | 20a6d2c34d86dcc9f68201dc1028f9053834ba7b /src/session.cc | |
parent | f7f5ed3d0fe96854f048609433fc68a3fb6fcf34 (diff) | |
download | fork-ledger-2d5ad7dee89ebe9c014270882e44d3a7a8a626fd.tar.gz fork-ledger-2d5ad7dee89ebe9c014270882e44d3a7a8a626fd.tar.bz2 fork-ledger-2d5ad7dee89ebe9c014270882e44d3a7a8a626fd.zip |
Added support for value expression definitions.
Example:
] expr f(x) := x + 100
] expr f(100)
200
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session.cc b/src/session.cc index fad51da3..5dbd5593 100644 --- a/src/session.cc +++ b/src/session.cc @@ -206,7 +206,8 @@ expr_t::ptr_op_t session_t::lookup(const string& name) } break; } - return NULL; + + return symbol_scope_t::lookup(name); } } // namespace ledger |