From 6b71fb1a3adc0b8eb3db01c199422f7aea2c4500 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 19 Aug 2010 15:40:25 +0000 Subject: Add quote to syntax (currently only a lexeme is quotable, no lists...) git-svn-id: http://svn.drobilla.net/resp/resp@262 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/constrain.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/constrain.cpp') diff --git a/src/constrain.cpp b/src/constrain.cpp index 969e87d..13bb9e8 100644 --- a/src/constrain.cpp +++ b/src/constrain.cpp @@ -45,6 +45,13 @@ ALexeme::constrain(TEnv& tenv, Constraints& c) const throw(Error) c.constrain(tenv, this, tenv.named("Lexeme")); } +void +AQuote::constrain(TEnv& tenv, Constraints& c) const throw(Error) +{ + c.constrain(tenv, this, tenv.named("Quote")); + (*(begin() + 1))->constrain(tenv, c); +} + void ASymbol::constrain(TEnv& tenv, Constraints& c) const throw(Error) { -- cgit v1.2.1