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/pprint.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/pprint.cpp')
-rw-r--r-- | src/pprint.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pprint.cpp b/src/pprint.cpp index 88ed90f..5253316 100644 --- a/src/pprint.cpp +++ b/src/pprint.cpp @@ -85,10 +85,6 @@ print_to(ostream& out, const AST* ast, unsigned indent, CEnv* cenv, bool types) const ASymbol* sym = (*i)->to_symbol(); if (sym) { form = sym->cppstr; - } else { - const ALexeme* lexeme = (*i)->to_lexeme(); - if (lexeme) - form = lexeme->cppstr; } } @@ -149,8 +145,6 @@ print_to(ostream& out, const AST* ast, unsigned indent, CEnv* cenv, bool types) return out << showpoint << ((const ALiteral<float>*)ast)->val; case T_INT32: return out << showpoint << ((const ALiteral<int32_t>*)ast)->val; - case T_LEXEME: - return out << ((const ALexeme*)ast)->cppstr; case T_STRING: return out << '"' << ((const AString*)ast)->cppstr << '"'; case T_SYMBOL: |