diff options
author | David Robillard <d@drobilla.net> | 2010-12-28 07:14:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-28 07:14:59 +0000 |
commit | 25e58056dc218afe0768081ef1c52974593773c0 (patch) | |
tree | f43ea899bcdf8602c0b95e80a81e9cb98e9a7b90 /src/c.cpp | |
parent | 867601738b4fc9a8536a34112f43f33e1541e7fd (diff) | |
download | resp-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/c.cpp')
-rw-r--r-- | src/c.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -89,7 +89,7 @@ CEngine::llType(const AST* t) if (sym == "Int") return new string("int"); if (sym == "Float") return new string("float"); if (sym == "String") return new string("char*"); - if (sym == "Quote") return new string("char*"); + if (sym == "Symbol") return new string("char*"); } else if (is_form(t, "Fn")){ ATuple::const_iterator i = t->as_tuple()->begin(); const ATuple* protT = (*++i)->to_tuple(); |