about summary refs log tree commit diff
path: root/src/libexpr/lexer.l
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-04-12T21·21+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-04-12T21·21+0000
commita60317f20fbc8be8e339060d932946f6d99ece6a (patch)
treeb6cd2cc61fb904fafc7527f2a776cdb6b0e9c179 /src/libexpr/lexer.l
parent4d6ad5be1738c64b1de4274cafbd4b8f23ca287c (diff)
* More missing constructs.
Diffstat (limited to 'src/libexpr/lexer.l')
-rw-r--r--src/libexpr/lexer.l4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l
index f750cfd02d54..e905700fded5 100644
--- a/src/libexpr/lexer.l
+++ b/src/libexpr/lexer.l
@@ -45,7 +45,6 @@ static void adjustLoc(YYLTYPE * loc, const char * s, size_t len)
 
 static Expr * unescapeStr(const char * s)
 {
-#if 0
     string t;
     char c;
     while ((c = *s++)) {
@@ -64,8 +63,7 @@ static Expr * unescapeStr(const char * s)
         }
         else t += c;
     }
-    return makeStr(toATerm(t), ATempty);
-#endif
+    return new ExprString(t);
 }