diff ast/Exp.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 7f9240d4ddc1
children d1f68bfb58ae
line wrap: on
line diff
--- a/ast/Exp.d	Thu May 08 10:54:29 2008 +0200
+++ b/ast/Exp.d	Wed May 21 21:05:23 2008 +0200
@@ -25,6 +25,7 @@
     AssignExp,
     CallExp,
     CastExp,
+    StringExp,
 }
 
 class Exp
@@ -436,6 +437,17 @@
     Exp exp;
 }
 
+class StringExp : Exp
+{
+    this(SLoc loc, char[] str)
+    {
+        super(ExpType.StringExp, loc);
+        this.str = str;
+    }
+
+    char[] str;
+}
+
 class PointerIdentifier : Identifier
 {
     this(Identifier pointerOf)