From c27e97b2294951e5db6e9c9fa6f6f0de2c5243e6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 9 Dec 2010 04:08:51 +0000 Subject: read_expression => PEnv::parse. git-svn-id: http://svn.drobilla.net/resp/resp@325 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/resp.hpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/resp.hpp') diff --git a/src/resp.hpp b/src/resp.hpp index a453b88..1fbf3cf 100644 --- a/src/resp.hpp +++ b/src/resp.hpp @@ -68,15 +68,6 @@ struct Error { }; -/*************************************************************************** - * Lexer: Text (istream) -> S-Expressions (SExp) * - ***************************************************************************/ - -struct PEnv; -struct AST; -const AST* read_expression(PEnv& penv, Cursor& cur, std::istream& in); - - /*************************************************************************** * Backend Types * ***************************************************************************/ @@ -544,6 +535,7 @@ ostream& operator<<(ostream& out, const Env& env) { return out; } + /*************************************************************************** * Parser: S-Expressions (SExp) -> AST Nodes (AST) * ***************************************************************************/ @@ -564,6 +556,8 @@ struct PEnv : private map { return new ASymbol(str, c); } } + + const AST* parse(Cursor& cur, std::istream& in); const AST* expand(const AST* exp); typedef std::set Primitives; -- cgit v1.2.1