A quad is now a file
[henge/webcc.git] / src / apc / parser.y
index 9a15851..2b17d83 100644 (file)
@@ -53,6 +53,7 @@
 %token <ref> REF
 %token <val> SSD
 %token <voidp> FPTR
+%token <voidp> QPTR
 // Change width, height, num_ptrs to NUM because
 // when scanning, we can't determine which NUM
 // is which. 
@@ -96,22 +97,17 @@ root:
 RT NUM NUM NUM                                                {insert_root($2, $3, $4);};
 ;
 
-quad_list:
-quad_list quad
-| quad
-;
-
-quad:
-QOPEN NUM NUM NUM REF QCLOSE                                  {insert_quad($2, $3, $4, $5);};
+quad_file:
+QOPEN QPTR  QCLOSE                                  {insert_quad($2);};
 
 hitbox:
 HB NUM                                                        {insert_hitbox($2);}
 ;
 
 set_map_data:
-quad_list
-| quad_list hitbox
-| quad_list hitbox root
+quad_file
+| quad_file hitbox
+| quad_file hitbox root
 | hitbox root
 | hitbox
 | root