diff sema/AstAction.d @ 104:7ff4bc2accf2 new_gen

Lexing more types of strings. Now all's left is to parse the string in the AST.
author Anders Johnsen <skabet@gmail.com>
date Wed, 21 May 2008 21:05:23 +0200
parents cd066f3b539a
children 3a0cd42de9cc
line wrap: on
line diff
--- a/sema/AstAction.d	Thu May 08 10:54:29 2008 +0200
+++ b/sema/AstAction.d	Wed May 21 21:05:23 2008 +0200
@@ -173,6 +173,11 @@
         return new IntegerLit(c.location, sm.getText(c.asRange));
     }
 
+    override ExprT actOnStringExp(Token s)
+    {
+        return new StringExp(s.location, sm.getText(s.asRange));
+    }
+
     override ExprT actOnIdentifierExp(Id id)
     {
         return identifierFromTok(id.tok);