<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -44,7 +44,7 @@
                 (is val t) (list &quot; PUSH(TOBJ);&quot;)
                 (list &quot; PUSH(FIX2OBJ(&quot; val &quot;));&quot;)))
           (aquote ast)
-            (let val (car ast!subx)
+            (let val ast!val
               (list &quot; PUSH(QUOTE_CONSTANTS[&quot; (add-constant val) &quot;]&quot;
                     &quot;/* '&quot; (tostring:write val) &quot; */);&quot;))
           (aref ast)
@@ -370,7 +370,7 @@ int main (int argc, char * argv[]) {
     (aseq ast)
       (cons 'do (map source ast!subx))
     (aquote ast)
-      (cons 'quote ast!subx)
+      (list 'quote ast!val)
       ; if unknown AST, then probably still in list form
       ; (cref driver)
       ast))</diff>
      <filename>codegen.arc</filename>
    </modified>
    <modified>
      <diff>@@ -39,8 +39,8 @@
 
 ; a quoted form
 ; (currently only literals)
-(def make-quote (subx)
-  (listtab `((type quote) (subx ,subx))))
+(def make-quote (subx val)
+  (listtab `((type quote) (subx ,subx) (val ,val))))
 
 (def aquote (x)
   (and (isa x 'table) (is x!type 'quote)))</diff>
      <filename>structs.arc</filename>
    </modified>
    <modified>
      <diff>@@ -85,7 +85,7 @@
 (= macquote* (make-macro 'quote
   (fn (e cte)
     (if (is (len (cdr e)) 1)
-      (make-quote (cdr e))
+      (make-quote '() (cadr e))
       (err &quot;quote expects 1 arg&quot;)))))
 
 (= macset* (make-macro 'set</diff>
      <filename>xe.arc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>80d4509e8566894e78dd098880436b5c4064126f</id>
    </parent>
  </parents>
  <author>
    <name>Alan Manuel K. Gloria</name>
    <email>almkglor@gmail.com</email>
  </author>
  <url>http://github.com/sacado/arc2c/commit/1053cf8820056376f796b6ddda3dff31216c6f25</url>
  <id>1053cf8820056376f796b6ddda3dff31216c6f25</id>
  <committed-date>2008-04-09T15:33:25-07:00</committed-date>
  <authored-date>2008-04-09T15:33:25-07:00</authored-date>
  <message>Changed quote AST: quoted field is now in separate 'val field

  The new rule is: any AST's subx field is always a list of
  AST's.  Non-AST values are *banned* from the subx field.
  Special-casing quote AST's is beginning to irritate me.</message>
  <tree>a56948c8392f41cde10dfae752d751f970a0171b</tree>
  <committer>
    <name>Alan Manuel K. Gloria</name>
    <email>almkglor@gmail.com</email>
  </committer>
</commit>
