aboutsummaryrefslogtreecommitdiffstats
path: root/src/expand.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-28 07:14:59 +0000
committerDavid Robillard <d@drobilla.net>2010-12-28 07:14:59 +0000
commit25e58056dc218afe0768081ef1c52974593773c0 (patch)
treef43ea899bcdf8602c0b95e80a81e9cb98e9a7b90 /src/expand.cpp
parent867601738b4fc9a8536a34112f43f33e1541e7fd (diff)
downloadresp-25e58056dc218afe0768081ef1c52974593773c0.tar.gz
resp-25e58056dc218afe0768081ef1c52974593773c0.tar.bz2
resp-25e58056dc218afe0768081ef1c52974593773c0.zip
Add quote form, to allow expressions literal symbols and lists (lists not yet implemented).
Quoting is a thin lexical concept - a quote of a symbol/list compiles to a symbol/list, rather than interpreted as code (i.e. a variable/call, respectively). A quote of anything else is equivalent to its quotee, e.g. a quote of a String is simply that string (the quote is removed at an early stage by the compiler). There is no Quote data type, or explicit unquoting, or anything like that. git-svn-id: http://svn.drobilla.net/resp/resp@365 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/expand.cpp')
-rw-r--r--src/expand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expand.cpp b/src/expand.cpp
index eb508f1..f0fed33 100644
--- a/src/expand.cpp
+++ b/src/expand.cpp
@@ -113,7 +113,7 @@ initLang(PEnv& penv, TEnv& tenv)
{
// Types
const char* types[] = {
- "Bool", "Float", "Int", "Nothing", "Quote", "String", "Symbol", 0 };
+ "Bool", "Float", "Int", "Nothing", "String", "Symbol", "List", 0 };
for (const char** t = types; *t; ++t) {
const ASymbol* sym = penv.sym(*t);
tenv.def(sym, sym); // FIXME: define to NULL?