summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-05 22:01:41 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-05 22:01:41 -0600
commitacb5e1beea4176ab51ca2c9d32b006e7c0a7bef0 (patch)
treee4f890c10c081a88b7e63401b47e4d9781ba90e6 /src/parser.h
parent59a16e59ee2e684f1d5292fe78ef94464a935d73 (diff)
downloadfork-ledger-acb5e1beea4176ab51ca2c9d32b006e7c0a7bef0.tar.gz
fork-ledger-acb5e1beea4176ab51ca2c9d32b006e7c0a7bef0.tar.bz2
fork-ledger-acb5e1beea4176ab51ca2c9d32b006e7c0a7bef0.zip
Generalized function call parsing
Directly calling a lambda now works: (x -> x + 10)(10) => 20
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h
index 75fd9a41..db16a919 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -81,6 +81,8 @@ class expr_t::parser_t : public noncopyable
ptr_op_t parse_value_term(std::istream& in,
const parse_flags_t& flags) const;
+ ptr_op_t parse_call_expr(std::istream& in,
+ const parse_flags_t& flags) const;
ptr_op_t parse_dot_expr(std::istream& in,
const parse_flags_t& flags) const;
ptr_op_t parse_unary_expr(std::istream& in,