iris

small scheme interpreter
git clone git://git.2f30.org/iris
Log | Files | Refs | LICENSE

commit 9778d434bbfe285a9ea8a60619c3392448cb030e
parent bec7e660f89cc3fe86466e3f1fdb2da516cfbf34
Author: sin <sin@2f30.org>
Date:   Fri,  9 May 2014 14:32:50 +0100

Handle quote tokens properly

Diffstat:
Mlexer.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lexer.c b/lexer.c @@ -188,8 +188,8 @@ gettok(struct lexerctx *ctx, const char *buf, size_t len) tok.e = ctx->e; return tok; case State_Quote: - tok.type = Error; - tok.s = "quote lexing not implemented yet"; + tok.type = Quote; + tok.s = ctx->s; tok.e = ctx->e; return tok; case State_Dot: