diff options
author | David Robillard <d@drobilla.net> | 2010-12-07 23:21:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-07 23:21:08 +0000 |
commit | 7682c4ceab935d39aafac369c9b110b658b1e575 (patch) | |
tree | 96fcddeb789f72419a5416201ee8944a58baac4e /src/resp.cpp | |
parent | 5e8c55c15f42aff343d0b6189a6c8f8c50d12775 (diff) | |
download | resp-7682c4ceab935d39aafac369c9b110b658b1e575.tar.gz resp-7682c4ceab935d39aafac369c9b110b658b1e575.tar.bz2 resp-7682c4ceab935d39aafac369c9b110b658b1e575.zip |
Saner recursive descent lexer/parser.
git-svn-id: http://svn.drobilla.net/resp/resp@306 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/resp.cpp')
-rw-r--r-- | src/resp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resp.cpp b/src/resp.cpp index 0d1af5a..824acff 100644 --- a/src/resp.cpp +++ b/src/resp.cpp @@ -143,8 +143,8 @@ main(int argc, char** argv) try { while (is.good() && !is.eof()) { Cursor loc(*f); - AST* exp = readExpression(loc, is); - if (!exp || (exp->as_tuple() && exp->as_tuple()->tup_len() == 1)) + AST* exp = read_expression(cenv->penv, loc, is); + if (!exp || (exp->to_tuple() && exp->to_tuple()->tup_len() == 1)) break; const AST* ast = penv.parse(exp); |